summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/b43/main.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-10-01 13:54:32 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 20:33:49 (GMT)
commit727c988593271599c9e5943699426afcce1a62d6 (patch)
tree8b3b565e1e4942ae5685f7ba4b97a8f2a2e54edf /drivers/net/wireless/b43/main.c
parenta4d63a943735efa30270ce70716d43323fd40f02 (diff)
downloadlinux-727c988593271599c9e5943699426afcce1a62d6.tar.xz
b43: Don't use struct wldev after detach.
Don't use struct wldev after detach. This fixes an oops on access. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r--drivers/net/wireless/b43/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 9b907a3..130dcd5 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -4997,7 +4997,7 @@ static void b43_remove(struct ssb_device *dev)
if (list_empty(&wl->devlist)) {
b43_rng_exit(wl);
- b43_leds_unregister(wldev);
+ b43_leds_unregister(wl);
/* Last core on the chip unregistered.
* We can destroy common struct b43_wl.
*/