riowatchdog: BKL pushdown
Arnd Bergmann [Tue, 20 May 2008 17:16:35 +0000 (19:16 +0200)]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

drivers/sbus/char/riowatchdog.c

index a2fc6b8..88c0fc6 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <linux/miscdevice.h>
+#include <linux/smp_lock.h>
 
 #include <asm/io.h>
 #include <asm/ebus.h>
@@ -116,6 +117,7 @@ static void riowd_starttimer(void)
 
 static int riowd_open(struct inode *inode, struct file *filp)
 {
+       cycle_kernel_lock();
        nonseekable_open(inode, filp);
        return 0;
 }