BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rpusbdisp
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Forest Godfrey
rpusbdisp
Commits
4f4bf016
Commit
4f4bf016
authored
Mar 25, 2014
by
Thibaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct issue with defferedIO structure
parent
8abc8e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fbhandlers.c
drivers/linux-driver/src/fbhandlers.c
+4
-2
No files found.
drivers/linux-driver/src/fbhandlers.c
View file @
4f4bf016
...
...
@@ -374,7 +374,7 @@ static int _on_create_new_fb(struct fb_info ** out_fb, struct rpusbdisp_dev *dev
fb
->
fbops
=
&
_display_fbops
;
fb
->
flags
=
FBINFO_DEFAULT
|
FBINFO_VIRTFB
;
fbmem_size
=
_var_info
.
xres
*
_vfb_fix
.
line_length
;
fbmem_size
=
_var_info
.
yres
*
_vfb_fix
.
line_length
;
// Correct issue with size allocation (too big)
fbmem
=
rvmalloc
(
fbmem_size
);
if
(
!
fbmem
)
{
...
...
@@ -400,7 +400,9 @@ static int _on_create_new_fb(struct fb_info ** out_fb, struct rpusbdisp_dev *dev
}
fbdefio
=
kmalloc
(
sizeof
(
struct
fb_deferred_io
),
GFP_KERNEL
);
// Since kernel 3.5 the fb_deferred_io structure has a second callback (first_io) that must be set to a valid function or NULL.
// To avoid unexpected crash due to a non initialized function pointer do a kzalloc rather than a kmalloc
fbdefio
=
/*kmalloc*/
kzalloc
(
sizeof
(
struct
fb_deferred_io
),
GFP_KERNEL
);
if
(
fbdefio
)
{
fbdefio
->
delay
=
HZ
/
16
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment