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)
committerDmitry Shmidt <dimitrysh@google.com>
Fri, 24 Jun 2011 17:21:09 +0000 (10:21 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/wl_cfg80211.c

index 4c20fddd38a9077deb14d2772ce0fd92c46d5d43..7181f2cb50b250285f79775a0ed9f34aecf0f03d 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)