]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: add cleanup in ath10k_sta_state()
authorWenwen Wang <wenwen@cs.uga.edu>
Thu, 15 Aug 2019 21:04:31 +0000 (16:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 17 Sep 2019 14:11:12 +0000 (17:11 +0300)
commit0b2dc588ff8ee8828da25d4ab75f33d0c93cf685
tree4d3289065c34d0a0034dd60333a2532a16cdedbd
parent364e867c2f626166955aba021eba9950d41098c1
ath10k: add cleanup in ath10k_sta_state()

If 'sta->tdls' is false, no cleanup is executed, leading to memory/resource
leaks, e.g., 'arsta->tx_stats'. To fix this issue, perform cleanup before
go to the 'exit' label.

Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/mac.c