]> git.baikalelectronics.ru Git - kernel.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)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 10 Sep 2019 13:31:40 +0000 (16:31 +0300)
commitdf4039bd720701b62f1711c28b9cc948261a8838
treea16be101bdd76336752724d8e34374ccbf4bd229
parent47d432ba45726502306b6076bfacbb7325965577
ath9k: release allocated buffer if timed out

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>
drivers/net/wireless/ath/ath9k/wmi.c