diff options
author | Arend van Spriel <arend@broadcom.com> | 2015-08-26 22:15:04 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-09-29 10:28:52 +0300 |
commit | 95ef12394a4d002c7ed3bcbed224f3391792a02b (patch) | |
tree | 9a6d1b39b10586c7272d2a2c7020d2aa359447f3 /drivers/net/wireless/b43 | |
parent | c67d41ba6ff3a4be9aecb9df202e05e149832df5 (diff) | |
download | blackbird-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