]> www.infradead.org Git - users/dwmw2/linux.git/commit
ath10k: fix tx_stats memory leak
authorZhi Chen <zhichen@codeaurora.org>
Thu, 20 Dec 2018 12:25:18 +0000 (14:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:25 +0000 (20:02 +0100)
commit7ee55abc1fee9da7080d18db8a1918021d57859e
tree42eb50c3288530ec71304c32385b13a6975489b6
parent38e98806b7608e1bb5c3577a10d32a2023ad3113
ath10k: fix tx_stats memory leak

[ Upstream commit 386f97e3b201d18578abb0e7037b85a1ae50c0a3 ]

Memory of tx_stats was allocated when a STA was added. But it's not freed
if the STA failed to be added to driver. This issue could be seen in MDK3
attack case when STA number reached the limit.

Tested: QCA9984 with firmware ver 10.4-3.9.0.1-00005
Signed-off-by: Zhi Chen <zhichen@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath10k/mac.c