ar9170: cancel led worker properly on exit
authorChristian Lamparter <chunkeey@web.de>
Mon, 1 Jun 2009 20:49:25 +0000 (22:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:05:15 +0000 (14:05 -0400)
commit6d7db193f2097d2f12fdc6b2300439a91a3196be
treed918f4737ac2093e5eaf5538d802571157db2e44
parent66d008139c61d610f3ade9b46ad610e2cd277fb9
ar9170: cancel led worker properly on exit

"[PATCH 3/4 v2] ar9170: fix LED power state handling" revealed
a bug which can cause a ugly crash.

The delayed worker is canceled before the LED class functions are
unregistered... So, if something manages to update the LEDs
while unregister routine is running the timer could fire _after_ the
module has been unloaded.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/led.c