diff options
| author | Colin Ian King <[email protected]> | 2018-05-27 22:17:02 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2018-06-13 14:50:40 +0300 |
| commit | 260e629bbf441585860e21d5e10d2e88437f47c8 (patch) | |
| tree | 179e22bf6faf500235ba2fc8e60a566750d4904a /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | 12b67b0d6bcbe91d8b0682610f43d1cd8cdf280e (diff) | |
ath10k: fix memory leak of tpc_stats
Currently tpc_stats is allocated and is leaked on the return
path if num_tx_chain is greater than WMI_TPC_TX_N_CHAIN. Avoid
this leak by performing the check on num_tx_chain before the
allocation of tpc_stats.
Detected by CoverityScan, CID#1469422 ("Resource Leak")
Fixes: 4b190675ad06 ("ath10k: fix kernel panic while reading tpc_stats")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions