summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43
diff options
context:
space:
mode:
authorArend van Spriel <arend@broadcom.com>2015-08-26 22:15:04 +0200
committerKalle Valo <kvalo@codeaurora.org>2015-09-29 10:28:52 +0300
commit95ef12394a4d002c7ed3bcbed224f3391792a02b (patch)
tree9a6d1b39b10586c7272d2a2c7020d2aa359447f3 /drivers/net/wireless/b43
parentc67d41ba6ff3a4be9aecb9df202e05e149832df5 (diff)
downloadblackbird-op-linux-95ef12394a4d002c7ed3bcbed224f3391792a02b.tar.gz
blackbird-op-linux-95ef12394a4d002c7ed3bcbed224f3391792a02b.zip
brcmfmac: introduce brcmf_net_detach() function
In case of error during brcmf_bus_start() the network interfaces were freed using free_netdev(). However, the interfaces may have additional memory allocated which is not freed. The netdev has destructor set to brcmf_cfg80211_free_netdev() which frees the additional memory if allocated and call free_netdev(). The brcmf_net_detach() either calls brcmf_cfg80211_free_netdev() directly or uses unregister_netdev() when struct net_device::reg_state indicates the netdev was registered. Reported-by: Daniel (Deognyoun) Kim <dekim@broadcom.com> Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/b43')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud