diff options
author | Arnd Bergmann <arnd@arndb.de> | 2008-05-20 21:16:52 +0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-03 01:06:25 +0400 |
commit | f138e4814a9c28bc44d967a8effdd977ac00fc6e (patch) | |
tree | 6d65cd348debc792b6a35d7716165de0045fdb0d /drivers/sbus/char/uctrl.c | |
parent | 25368ca579905efe7f7dda43c252eb7b371de98c (diff) | |
download | linux-f138e4814a9c28bc44d967a8effdd977ac00fc6e.tar.xz |
uctrl: BKL pushdown
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/sbus/char/uctrl.c')
-rw-r--r-- | drivers/sbus/char/uctrl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/sbus/char/uctrl.c b/drivers/sbus/char/uctrl.c index 383f32c1d347..513ba61ae966 100644 --- a/drivers/sbus/char/uctrl.c +++ b/drivers/sbus/char/uctrl.c @@ -9,6 +9,7 @@ #include <linux/delay.h> #include <linux/interrupt.h> #include <linux/slab.h> +#include <linux/smp_lock.h> #include <linux/ioport.h> #include <linux/init.h> #include <linux/miscdevice.h> @@ -211,8 +212,10 @@ uctrl_ioctl(struct inode *inode, struct file *file, static int uctrl_open(struct inode *inode, struct file *file) { + lock_kernel(); uctrl_get_event_status(); uctrl_get_external_status(); + unlock_kernel(); return 0; } |