summaryrefslogtreecommitdiffstats
path: root/drivers/parisc/eisa_eeprom.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2008-05-20 19:16:30 +0200
committerJonathan Corbet <corbet@lwn.net>2008-07-02 15:06:24 -0600
commit6044c319d11051f3462dafd0e7a900ef121d7bc7 (patch)
tree9179309a70de6a6ea44394ac190442764155a1cc /drivers/parisc/eisa_eeprom.c
parent7bcc3209be82d69361a944c57caeb548b35c7f04 (diff)
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.c3
1 files changed, 3 insertions, 0 deletions
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 <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;