watchdog: Remove BKL from rio watchdog driver
authorThomas Gleixner <tglx@linutronix.de>
Tue, 3 Nov 2009 05:16:28 +0000 (21:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Nov 2009 05:16:28 +0000 (21:16 -0800)
cycle_kernel_lock() was added with the BKL pushdown. The rio driver
indeed needs that because riowd_device is initialized after
misc_register(). So an open(), write/ioctl() which happens to get
between misc_register returning and riowd_device initialization would
dereference a NULL pointer.

Move riowd_device initialization before misc_register() and get rid of
cycle_kernel_lock().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found