projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c7de0
)
envctrl: BKL pushdown
author
Arnd Bergmann
<arnd@arndb.de>
Tue, 20 May 2008 17:15:53 +0000
(19:15 +0200)
committer
Jonathan Corbet
<corbet@lwn.net>
Fri, 20 Jun 2008 20:05:56 +0000
(14:05 -0600)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/sbus/char/envctrl.c
patch
|
blob
|
history
diff --git
a/drivers/sbus/char/envctrl.c
b/drivers/sbus/char/envctrl.c
index dadabef116b60ea75d935b37254ca53eeff2e09a..a408402426f853bf78a21406c975fbf484c0ca8a 100644
(file)
--- a/
drivers/sbus/char/envctrl.c
+++ b/
drivers/sbus/char/envctrl.c
@@
-27,6
+27,7
@@
#include <linux/miscdevice.h>
#include <linux/kmod.h>
#include <linux/reboot.h>
+#include <linux/smp_lock.h>
#include <asm/ebus.h>
#include <asm/uaccess.h>
@@
-694,6
+695,7
@@
envctrl_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
static int
envctrl_open(struct inode *inode, struct file *file)
{
+ cycle_kernel_lock();
file->private_data = NULL;
return 0;
}