diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-05-16 00:16:28 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-06-20 22:05:49 +0200 |
commit | 1bcaa0bd6fd5b510dd9f1ba2da114d3f1253af61 (patch) | |
tree | 1fc91517faba8e3a05dd11b743f5bdce5bf2f37f /drivers/isdn | |
parent | gdth: cdev lock_kernel() pushdown (diff) | |
download | linux-1bcaa0bd6fd5b510dd9f1ba2da114d3f1253af61.tar.xz linux-1bcaa0bd6fd5b510dd9f1ba2da114d3f1253af61.zip |
isdn: cdev lock_kernel() pushdown
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/i4l/isdn_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index 0f3c66de69bc..5158c606ff5b 100644 --- a/drivers/isdn/i4l/isdn_common.c +++ b/drivers/isdn/i4l/isdn_common.c @@ -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; } |