brcmfmac: use struct net_device::destructor to remove interfaces
authorArend van Spriel <arend@broadcom.com>
Mon, 27 May 2013 19:09:57 +0000 (21:09 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 May 2013 17:43:09 +0000 (13:43 -0400)
commitcbb371da233eb2b4c200010a5372579b880b4ae6
tree11941df709d5c888ab9f90fcb9599557e9f7a61d
parent9390ace916b2fd866c1762b1cd16c276d8c8c890
brcmfmac: use struct net_device::destructor to remove interfaces

Upon deleting a P2P_CLIENT/GO interface the vif and consequently
the wdev is freed before the net_device is actually being unregistered
but cfg80211 still needs to access the wdev. Using destructor field
to free the net_device and vif.

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
drivers/net/wireless/brcm80211/brcmfmac/p2p.c
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c