projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bcc320
)
parisc-eisa_eeprom: BKL pushdown
author
Arnd Bergmann
<arnd@arndb.de>
Tue, 20 May 2008 17:16:30 +0000
(19:16 +0200)
committer
Jonathan Corbet
<corbet@lwn.net>
Wed, 2 Jul 2008 21:06:24 +0000
(15:06 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/parisc/eisa_eeprom.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/parisc/eisa_eeprom.c
b/drivers/parisc/eisa_eeprom.c
index 86e9c84a965e3e4f815266734c1c030078a3d0c6..5ac207932fd7b755fa56418ec8745be6c9afd093 100644
(file)
--- 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;