diff options
| author | Colin Ian King <colin.king@canonical.com> | 2017-06-02 16:40:45 +0100 | 
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2017-06-13 10:01:36 +0300 | 
| commit | bc0384eedb66555f6b4662102675f9bf4a3d12b7 (patch) | |
| tree | e53f5ea99214ab22cbabe8cc6023428cd023f2da /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 292c333300ec2a412902fa59aad5b365024384a5 (diff) | |
qtnfmac: check band before allocating cmd_skb to avoid resource leak
The current code allocates cmd_skb and then will leak this if band->band
is an illegal value. It is simpler to sanity check the band first before
allocating cmd_skb so that we don't have to free cmd_skb if an invalid
band occurs.
Detected by CoverityScan, CID#1437561 ("Resource Leak")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
