diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-10-26 10:32:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-26 10:32:13 -0400 |
commit | 330ee00412bbaefa7d0597a1bed7804e818ba91c (patch) | |
tree | 0d086857f4e704f4945463e87e76ebf8ae32cad8 /drivers/net/wireless/b43/main.c | |
parent | 3da3fff8006c608f19a51859d44ba47ca8b41461 (diff) | |
parent | f89ff6441df06abc2d95f3ef67525923032d6283 (diff) | |
download | linux-330ee00412bbaefa7d0597a1bed7804e818ba91c.tar.bz2 |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 73730e94e0ac..c5a99c8c8168 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c @@ -5404,6 +5404,8 @@ static void b43_bcma_remove(struct bcma_device *core) cancel_work_sync(&wldev->restart_work); B43_WARN_ON(!wl); + if (!wldev->fw.ucode.data) + return; /* NULL if firmware never loaded */ if (wl->current_dev == wldev && wl->hw_registred) { b43_leds_stop(wldev); ieee80211_unregister_hw(wl->hw); @@ -5478,6 +5480,8 @@ static void b43_ssb_remove(struct ssb_device *sdev) cancel_work_sync(&wldev->restart_work); B43_WARN_ON(!wl); + if (!wldev->fw.ucode.data) + return; /* NULL if firmware never loaded */ if (wl->current_dev == wldev && wl->hw_registred) { b43_leds_stop(wldev); ieee80211_unregister_hw(wl->hw); |