From: Jonathan Corbet Date: Thu, 15 May 2008 22:16:28 +0000 (-0600) Subject: isdn: cdev lock_kernel() pushdown X-Git-Tag: v2.6.27-rc1~1103^2~115 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bcaa0bd6fd5b510dd9f1ba2da114d3f1253af61;p=linux-2.6 isdn: cdev lock_kernel() pushdown Signed-off-by: Jonathan Corbet --- diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index 0f3c66de69..5158c606ff 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; }