diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 19:16:30 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-02 15:06:24 -0600 |
commit | 6044c319d11051f3462dafd0e7a900ef121d7bc7 (patch) | |
tree | 9179309a70de6a6ea44394ac190442764155a1cc /drivers/parisc/eisa_eeprom.c | |
parent | 7bcc3209be82d69361a944c57caeb548b35c7f04 (diff) | |
download | linux-6044c319d11051f3462dafd0e7a900ef121d7bc7.tar.bz2 |
parisc-eisa_eeprom: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/parisc/eisa_eeprom.c')
-rw-r--r-- | drivers/parisc/eisa_eeprom.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/parisc/eisa_eeprom.c b/drivers/parisc/eisa_eeprom.c index 86e9c84a965e..5ac207932fd7 100644 --- a/drivers/parisc/eisa_eeprom.c +++ b/drivers/parisc/eisa_eeprom.c @@ -24,6 +24,7 @@ #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/slab.h> +#include <linux/smp_lock.h> #include <linux/fs.h> #include <asm/io.h> #include <asm/uaccess.h> @@ -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; |