brcmfmac: Fix a memory leak in error handling path in 'brcmf_cfg80211_attach'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Wed, 21 Jun 2017 05:45:53 +0000 (07:45 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Jun 2017 14:15:45 +0000 (17:15 +0300)
commit57c00f2fac512837f8de73474ec1f54020015bae
treea66f16ea559fdaa0fb97af70a2a5be37468bf07f
parentdca2307ed6250e7be6993e165570fa4097903a58
brcmfmac: Fix a memory leak in error handling path in 'brcmf_cfg80211_attach'

If 'wiphy_new()' fails, we leak 'ops'. Add a new label in the error
handling path to free it in such a case.

Cc: stable@vger.kernel.org
Fixes: 5c22fb85102a7 ("brcmfmac: add wowl gtk rekeying offload support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c