]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 05:00:31 +0000 (00:00 -0500)
commit416302e5a97c1b648a36855eb074782400122db7
tree7fb115fb5dacf98f83eacfce3ee1774b2dc994a3
parent2737cc247d03f015ec4f0219ba7434ff699f499b
ath10k: add cleanup in ath10k_sta_state()

BugLink: https://bugs.launchpad.net/bugs/1860490
[ Upstream commit 334f5b61a6f29834e881923b98d1e27e5ce9620d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/wireless/ath/ath10k/mac.c