b43: Don't abuse wl->current_dev in the led work
authorMichael Buesch <mb@bu3sch.de>
Mon, 14 Sep 2009 21:22:08 +0000 (23:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 23 Sep 2009 15:35:45 +0000 (11:35 -0400)
commite899a3f232125c393cdf7f7bf6533501ef8808fb
treebf6dae95b5e9da612ccdc24f56807c66ca310d0a
parent9308779aad721cab8434fd5f98d3c85d3716fdec
b43: Don't abuse wl->current_dev in the led work

Don't abuse wl->current_dev in the LED work for checking whether we're
going down. Add an explicit variable.
This fixes a crash on rmmod dereferencing the wl->current_dev NULL pointer
in various other places of the driver.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/leds.c
drivers/net/wireless/b43/leds.h
drivers/net/wireless/b43/main.c