From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:30 +0000 (+0200) Subject: parisc-eisa_eeprom: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6044c319d11051f3462dafd0e7a900ef121d7bc7;p=linux-2.6-omap-h63xx.git parisc-eisa_eeprom: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/parisc/eisa_eeprom.c b/drivers/parisc/eisa_eeprom.c index 86e9c84a965..5ac207932fd 100644 --- a/drivers/parisc/eisa_eeprom.c +++ b/drivers/parisc/eisa_eeprom.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -83,6 +84,8 @@ static int eisa_eeprom_ioctl(struct inode *inode, struct file *file, static int eisa_eeprom_open(struct inode *inode, struct file *file) { + cycle_kernel_lock(); + if (file->f_mode & 2) return -EINVAL;