You need to sign in or sign up before continuing.
提交 7ca577f7 编写于 作者: M Miaoqing Pan 提交者: Yang Yingliang

ath10k: fix memory leak for tpc_stats_final

[ Upstream commit 486a8849 ]

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: NMiaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 6de514c6
...@@ -2365,6 +2365,7 @@ void ath10k_debug_destroy(struct ath10k *ar) ...@@ -2365,6 +2365,7 @@ void ath10k_debug_destroy(struct ath10k *ar)
ath10k_debug_fw_stats_reset(ar); ath10k_debug_fw_stats_reset(ar);
kfree(ar->debug.tpc_stats); kfree(ar->debug.tpc_stats);
kfree(ar->debug.tpc_stats_final);
} }
int ath10k_debug_register(struct ath10k *ar) int ath10k_debug_register(struct ath10k *ar)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册