projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a30427d
)
Remove the lock_kernel() call from chrdev_open()
author
Jonathan Corbet
<corbet@lwn.net>
Sun, 18 May 2008 21:40:00 +0000
(15:40 -0600)
committer
Jonathan Corbet
<corbet@lwn.net>
Fri, 20 Jun 2008 20:05:53 +0000
(14:05 -0600)
All in-kernel char device open() functions now either have their own
lock_kernel() calls or clearly do not need one.
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
fs/char_dev.c
patch
|
blob
|
history
diff --git
a/fs/char_dev.c
b/fs/char_dev.c
index a54d69369b2f4d5384f9072e99ee0e015c780e87..3cb7cda3d780e95026142398f4c52cdf565d93b6 100644
(file)
--- a/
fs/char_dev.c
+++ b/
fs/char_dev.c
@@
-394,11
+394,8
@@
static int chrdev_open(struct inode *inode, struct file *filp)
cdev_put(p);
return -ENXIO;
}
- if (filp->f_op->open) {
- lock_kernel();
+ if (filp->f_op->open)
ret = filp->f_op->open(inode,filp);
- unlock_kernel();
- }
if (ret)
cdev_put(p);
return ret;