diff options
| author | Colin Ian King <colin.king@canonical.com> | 2018-05-28 00:17:02 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2018-06-13 14:50:40 +0300 |
| commit | 260e629bbf441585860e21d5e10d2e88437f47c8 (patch) | |
| tree | 179e22bf6faf500235ba2fc8e60a566750d4904a /tools/perf/scripts/python/compaction-times.py | |
| parent | 12b67b0d6bcbe91d8b0682610f43d1cd8cdf280e (diff) | |
| download | linux-260e629bbf441585860e21d5e10d2e88437f47c8.tar.xz | |
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 <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
