brcmfmac: fix memory leak in brcmf_cfg80211_attach()
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Fri, 9 Dec 2016 11:34:13 +0000 (11:34 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 20 Dec 2016 14:09:03 +0000 (16:09 +0200)
commitcb853da3a368c40300a0e940f86be582037bb082
tree87323ca4abb8cff6f6b0655dae3a07cd7e25cb76
parentad688cdbb076833ba17fc65591cd0fe01900a5cf
brcmfmac: fix memory leak in brcmf_cfg80211_attach()

In brcmf_cfg80211_attach() there was one error path not properly
handled as it leaked memory allocated in brcmf_btcoex_attach().

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c