projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5329b2
)
ath10k: fix memory leak for tpc_stats_final
author
Miaoqing Pan
<miaoqing@codeaurora.org>
Wed, 9 Oct 2019 08:18:09 +0000
(16:18 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 14 Oct 2019 08:34:31 +0000
(11:34 +0300)
The memory of ar->debug.tpc_stats_final is reallocated every debugfs
reading, it should be freed in ath10k_debug_destroy() for the last
allocation.
Tested HW: QCA9984
Tested FW: 10.4-3.9.0.2-00035
Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/debug.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath10k/debug.c
b/drivers/net/wireless/ath/ath10k/debug.c
index 40baf25ac99f3fd12325993a0f8f24350504855b..04c50a26a4f47fdedf4b6983cbfce7c257460a45 100644
(file)
--- a/
drivers/net/wireless/ath/ath10k/debug.c
+++ b/
drivers/net/wireless/ath/ath10k/debug.c
@@
-2532,6
+2532,7
@@
void ath10k_debug_destroy(struct ath10k *ar)
ath10k_debug_fw_stats_reset(ar);
kfree(ar->debug.tpc_stats);
+ kfree(ar->debug.tpc_stats_final);
}
int ath10k_debug_register(struct ath10k *ar)