diff options
author | 2019-04-09 12:43:33 +0100 | |
---|---|---|
committer | 2019-04-13 14:07:09 +0300 | |
commit | a927e8d8ab57e696800e20cf09a72b7dfe3bbebb (patch) | |
tree | 4f8dd99daf01eed6a63eb1f6a72e40a6659788d5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | brcmfmac: Loading the correct firmware for brcm43456 (diff) | |
download | wireguard-linux-a927e8d8ab57e696800e20cf09a72b7dfe3bbebb.tar.xz wireguard-linux-a927e8d8ab57e696800e20cf09a72b7dfe3bbebb.zip |
brcmfmac: fix leak of mypkt on error return path
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: a7c3aa1509e2 ("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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions