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
579174a5
Commit
579174a5
authored
May 15, 2008
by
Jonathan Corbet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AoE: cdev lock_kernel() pushdown
Signed-off-by:
Jonathan Corbet
<
corbet@lwn.net
>
parent
764a4a8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/block/aoe/aoechr.c
drivers/block/aoe/aoechr.c
+6
-1
No files found.
drivers/block/aoe/aoechr.c
View file @
579174a5
...
...
@@ -7,6 +7,7 @@
#include <linux/hdreg.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/smp_lock.h>
#include "aoe.h"
enum
{
...
...
@@ -174,12 +175,16 @@ aoechr_open(struct inode *inode, struct file *filp)
{
int
n
,
i
;
lock_kernel
();
n
=
iminor
(
inode
);
filp
->
private_data
=
(
void
*
)
(
unsigned
long
)
n
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
chardevs
);
++
i
)
if
(
chardevs
[
i
].
minor
==
n
)
if
(
chardevs
[
i
].
minor
==
n
)
{
unlock_kernel
();
return
0
;
}
unlock_kernel
();
return
-
EINVAL
;
}
...
...
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