mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
isdn: cdev lock_kernel() pushdown
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
parent
46787b481b
commit
1bcaa0bd6f
1 changed files with 2 additions and 1 deletions
|
|
@ -1732,7 +1732,7 @@ isdn_open(struct inode *ino, struct file *filep)
|
|||
int chidx;
|
||||
int retval = -ENODEV;
|
||||
|
||||
|
||||
lock_kernel();
|
||||
if (minor == ISDN_MINOR_STATUS) {
|
||||
infostruct *p;
|
||||
|
||||
|
|
@ -1783,6 +1783,7 @@ isdn_open(struct inode *ino, struct file *filep)
|
|||
#endif
|
||||
out:
|
||||
nonseekable_open(ino, filep);
|
||||
unlock_kernel();
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue