OSDN Git Service

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)
commit728c1e2a05e4b5fc52fab3421dce772a806612a2
treea16be101bdd76336752724d8e34374ccbf4bd229
parent853acf7caf10b828102d92d05b5c101666a6142b
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