ath10k: fix memory leak for tpc_stats_final
authorMiaoqing Pan <miaoqing@codeaurora.org>
Wed, 9 Oct 2019 08:18:09 +0000 (16:18 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 14 Oct 2019 08:34:31 +0000 (11:34 +0300)
commit486a8849843455298d49e694cca9968336ce2327
tree3a7ee06b1b0601bdea15834c01da68214661dc99
parentc5329b2d5b8b4e41be14d31ee8505b4f5607bf9b
ath10k: fix memory leak for tpc_stats_final

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