diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-04-09 14:43:33 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-04-13 14:07:09 +0300 |
commit | a927e8d8ab57e696800e20cf09a72b7dfe3bbebb (patch) | |
tree | 4f8dd99daf01eed6a63eb1f6a72e40a6659788d5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e3062e05e1cfe378bb9b3fa0bef46711372bcf13 (diff) | |
download | linux-a927e8d8ab57e696800e20cf09a72b7dfe3bbebb.tar.xz |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions