mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
Remove the lock_kernel() call from chrdev_open()
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>
This commit is contained in:
parent
a30427d92d
commit
9514dff918
1 changed files with 1 additions and 4 deletions
|
@ -394,11 +394,8 @@ static int chrdev_open(struct inode *inode, struct file *filp)
|
||||||
cdev_put(p);
|
cdev_put(p);
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
}
|
}
|
||||||
if (filp->f_op->open) {
|
if (filp->f_op->open)
|
||||||
lock_kernel();
|
|
||||||
ret = filp->f_op->open(inode,filp);
|
ret = filp->f_op->open(inode,filp);
|
||||||
unlock_kernel();
|
|
||||||
}
|
|
||||||
if (ret)
|
if (ret)
|
||||||
cdev_put(p);
|
cdev_put(p);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue