This patch fixes an oops when bcm43xx-d80211 module is unloaded.

Signed-off-by: Jiri Benc <[EMAIL PROTECTED]>

--- dscape.testing.orig/drivers/net/wireless/bcm43xx-d80211/bcm43xx_main.c      
2006-02-15 20:06:07.000000000 +0100
+++ dscape.testing/drivers/net/wireless/bcm43xx-d80211/bcm43xx_main.c   
2006-02-15 20:07:17.000000000 +0100
@@ -4785,7 +4785,8 @@ static void __devexit bcm43xx_remove_one
        ieee80211_unregister_hw(net_dev);
        bcm43xx_detach_board(bcm);
        destroy_workqueue(bcm->workqueue);
-       kfree_skb(bcm->cached_beacon);
+       if (bcm->cached_beacon)
+               kfree_skb(bcm->cached_beacon);
        assert(bcm->ucode == NULL);
        ieee80211_free_hw(net_dev);
        kfree(ieee);


-- 
Jiri Benc
SUSE Labs
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to