Browse Source

isdn: cdev lock_kernel() pushdown

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Jonathan Corbet 17 năm trước cách đây
mục cha
commit
1bcaa0bd6f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      drivers/isdn/i4l/isdn_common.c

+ 2 - 1
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;
 }