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

drivers/char/mwave/mwavedd.c

index 8d14823..50243fc 100644 (file)
@@ -56,6 +56,7 @@
 #include <linux/serial.h>
 #include <linux/sched.h>
 #include <linux/spinlock.h>
+#include <linux/smp_lock.h>
 #include <linux/delay.h>
 #include <linux/serial_8250.h>
 #include "smapi.h"
@@ -100,6 +101,7 @@ static int mwave_open(struct inode *inode, struct file *file)
        PRINTK_2(TRACE_MWAVE,
                "mwavedd::mwave_open, exit return retval %x\n", retval);
 
+       cycle_kernel_lock();
        return retval;
 }