]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: mac80211_if: Fix a resource leak in an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 12 May 2021 20:58:30 +0000 (22:58 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 Jun 2021 10:42:53 +0000 (13:42 +0300)
commit3ac6b0af5abb3e9c02f8f6b830e72fb4ab5dd786
tree606a269bb249fcb29fedcc919226613c013d235a
parent6591c4c1b987e9e6e18e469a9eea9a6270c54e83
brcmsmac: mac80211_if: Fix a resource leak in an error handling path

If 'brcms_attach()' fails, we must undo the previous 'ieee80211_alloc_hw()'
as already done in the remove function.

Fixes: 7bd3d640ac0b ("net: wireless: add brcm80211 drivers")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/8fbc171a1a493b38db5a6f0873c6021fca026a6c.1620852921.git.christophe.jaillet@wanadoo.fr
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c