linux-uconsole/drivers/net/wireless/broadcom
Colin Ian King 10c588de85 brcmfmac: fix leak of mypkt on error return path
[ Upstream commit a927e8d8ab ]

Currently if the call to brcmf_sdiod_set_backplane_window fails then
error return path leaks mypkt. Fix this by returning by a new
error path labelled 'out' that calls brcmu_pkt_buf_free_skb to free
mypkt.  Also remove redundant check on err before calling
brcmf_sdiod_skbuff_write.

Addresses-Coverity: ("Resource Leak")
Fixes: a7c3aa1509 ("brcmfmac: Remove brcmf_sdiod_addrprep()")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:50:38 +01:00
..
b43 b43: shut up clang -Wuninitialized variable warning 2019-05-31 06:46:25 -07:00
b43legacy b43legacy/leds: Ensure NUL-termination of LED name string 2018-08-09 18:44:54 +03:00
brcm80211 brcmfmac: fix leak of mypkt on error return path 2020-01-27 14:50:38 +01:00
Kconfig net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Makefile