From: Dmitry Shmidt Date: Fri, 24 Jun 2011 17:16:22 +0000 (-0700) Subject: net: wireless: bcmdhd: Fix memory poisoning in wl_free_wdev() X-Git-Tag: firefly_0821_release~7613^2~578 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fa0f10bee3e30bca9cdc70139e5186e2be44158b;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Fix memory poisoning in wl_free_wdev() Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index 4c20fddd38a9..7181f2cb50b2 100644 --- a/drivers/net/wireless/bcmdhd/wl_cfg80211.c +++ b/drivers/net/wireless/bcmdhd/wl_cfg80211.c @@ -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)