b43: do not call ieee80211_unregister_hw if we are not registred
authorOleksij Rempel <bug-track@fisher-privat.net>
Tue, 5 Jun 2012 18:39:32 +0000 (20:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Jun 2012 17:47:06 +0000 (13:47 -0400)
commite64add27e1b4874f589e550b4e0ca6715070373f
tree946313bd3ce6f26c150266d974921b64c1407b58
parentd2c8b15d0cb486f4938ba7f2af349d9d1220cb10
b43: do not call ieee80211_unregister_hw if we are not registred

this patch fixes kernel Oops on "rmmod b43" if firmware was not loaded:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000088
IP: [<ffffffff8104e988>] drain_workqueue+0x25/0x142
PGD 153ac6067 PUD 153b82067 PMD 0
Oops: 0000 [#1] SMP

Signed-off-by: Oleksij Rempel <bug-track@fisher-privat.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/b43.h
drivers/net/wireless/b43/main.c