From: Jonathan Corbet Date: Thu, 15 May 2008 22:01:47 +0000 (-0600) Subject: aacraid: cdev lock_kernel() pushdown X-Git-Tag: v2.6.27-rc1~1103^2~118 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4514d1bed1c7157bcff4c81307a9e0374df257a;p=linux-2.6 aacraid: cdev lock_kernel() pushdown Signed-off-by: Jonathan Corbet --- diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 1f7c83607f..68c140e826 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -667,6 +668,7 @@ static int aac_cfg_open(struct inode *inode, struct file *file) unsigned minor_number = iminor(inode); int err = -ENODEV; + lock_kernel(); /* BKL pushdown: nothing else protects this list */ list_for_each_entry(aac, &aac_devices, entry) { if (aac->id == minor_number) { file->private_data = aac; @@ -674,6 +676,7 @@ static int aac_cfg_open(struct inode *inode, struct file *file) break; } } + unlock_kernel(); return err; }