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
f97259e3
Commit
f97259e3
authored
May 16, 2008
by
Jonathan Corbet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vcs: BKL pushdown
Add explicit BKL to vcs_open(). Signed-off-by:
Jonathan Corbet
<
corbet@lwn.net
>
parent
609f9e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
drivers/char/vc_screen.c
drivers/char/vc_screen.c
+7
-2
No files found.
drivers/char/vc_screen.c
View file @
f97259e3
...
...
@@ -34,6 +34,7 @@
#include <linux/kbd_kern.h>
#include <linux/console.h>
#include <linux/device.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h>
#include <asm/byteorder.h>
...
...
@@ -460,9 +461,13 @@ static int
vcs_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
unsigned
int
currcons
=
iminor
(
inode
)
&
127
;
int
ret
=
0
;
lock_kernel
();
if
(
currcons
&&
!
vc_cons_allocated
(
currcons
-
1
))
return
-
ENXIO
;
return
0
;
ret
=
-
ENXIO
;
unlock_kernel
();
return
ret
;
}
static
const
struct
file_operations
vcs_fops
=
{
...
...
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