Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
fc7f687a
Commit
fc7f687a
authored
May 15, 2008
by
Jonathan Corbet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbmem: cdev lock_kernel() pushdown
Signed-off-by:
Jonathan Corbet
<
corbet@lwn.net
>
parent
5794e1b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
drivers/video/fbmem.c
drivers/video/fbmem.c
+11
-4
No files found.
drivers/video/fbmem.c
View file @
fc7f687a
...
...
@@ -1326,20 +1326,27 @@ fb_open(struct inode *inode, struct file *file)
if
(
fbidx
>=
FB_MAX
)
return
-
ENODEV
;
lock_kernel
();
#ifdef CONFIG_KMOD
if
(
!
(
info
=
registered_fb
[
fbidx
]))
try_to_load
(
fbidx
);
#endif
/* CONFIG_KMOD */
if
(
!
(
info
=
registered_fb
[
fbidx
]))
return
-
ENODEV
;
if
(
!
try_module_get
(
info
->
fbops
->
owner
))
return
-
ENODEV
;
if
(
!
(
info
=
registered_fb
[
fbidx
]))
{
res
=
-
ENODEV
;
goto
out
;
}
if
(
!
try_module_get
(
info
->
fbops
->
owner
))
{
res
=
-
ENODEV
;
goto
out
;
}
file
->
private_data
=
info
;
if
(
info
->
fbops
->
fb_open
)
{
res
=
info
->
fbops
->
fb_open
(
info
,
1
);
if
(
res
)
module_put
(
info
->
fbops
->
owner
);
}
out:
unlock_kernel
();
return
res
;
}
...
...
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