net: wireless: bcmdhd: Fix memory poisoning in wl_free_wdev()
authorDmitry Shmidt <dimitrysh@google.com>
Fri, 24 Jun 2011 17:16:22 +0000 (10:16 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:09:18 +0000 (12:09 -0800)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c

index 4c20fdd..7181f2c 100644 (file)
@@ -3446,7 +3446,6 @@ static void wl_free_wdev(struct wl_priv *wl)
        wiphy_unregister(wdev->wiphy);
        wiphy_free(wdev->wiphy);
        kfree(wdev);
-       wl_to_wdev(wl) = NULL;
 }
 
 static s32 wl_inform_bss(struct wl_priv *wl)