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: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6044c319d11051f3462dafd0e7a900ef121d7bc7;p=linux-2.6 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 86e9c84a96..5ac207932f 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;