rtl8187: Fix for kernel oops when unloading with LEDs enabled
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 14 Jul 2009 20:55:16 +0000 (15:55 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Jul 2009 16:07:42 +0000 (12:07 -0400)
commit3da7429ce92abd79b14e2275a28be144ce2c3013
treea58e1418d90d3dc5d2bf9b35ca408330a0ab556c
parent65b5a69860ed3bc4224368b804d381cd9cafa90a
rtl8187: Fix for kernel oops when unloading with LEDs enabled

When rtl8187 is unloaded and CONFIG_RTL8187_LEDS is set, the kernel
may oops when the module is unloaded as the workqueue for led_on was
not being cancelled.

This patch fixes the problem reported in
http://marc.info/?l=linux-wireless&m=124742957615781&w=2.

Reported-by: Gábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8187_leds.c