]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ath9k: release allocated buffer if timed out
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Fri, 6 Sep 2019 18:59:30 +0000 (13:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 08:52:52 +0000 (10:52 +0200)
commit94e3650b2568ae7a06e10c282f588ddede5df1d6
treee6c425bc758ad4ec0b9a9bebcbe637f9055da3a2
parent60fa3632210b1dc99296100227ae2d79ebbb4780
ath9k: release allocated buffer if timed out

[ Upstream commit 728c1e2a05e4b5fc52fab3421dce772a806612a2 ]

In ath9k_wmi_cmd, the allocated network buffer needs to be released
if timeout happens. Otherwise memory will be leaked.

Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath9k/wmi.c