Commit 9514dff9 authored by Jonathan Corbet's avatar Jonathan Corbet

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: default avatarJonathan Corbet <corbet@lwn.net>
parent a30427d9
...@@ -394,11 +394,8 @@ static int chrdev_open(struct inode *inode, struct file *filp) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment