From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:52 +0000 (+0200) Subject: uctrl: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f138e4814a9c28bc44d967a8effdd977ac00fc6e;p=linux-2.6-omap-h63xx.git uctrl: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/sbus/char/uctrl.c b/drivers/sbus/char/uctrl.c index 383f32c1d34..513ba61ae96 100644 --- a/drivers/sbus/char/uctrl.c +++ b/drivers/sbus/char/uctrl.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -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; }