Skip to content
Browse files

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 <>
Signed-off-by: Kalle Valo <>
  • Loading branch information
Navidem authored and Kalle Valo committed Sep 6, 2019
1 parent 853acf7 commit 728c1e2a05e4b5fc52fab3421dce772a806612a2
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/net/wireless/ath/ath9k/wmi.c
@@ -336,6 +336,7 @@ int ath9k_wmi_cmd(struct wmi *wmi, enum wmi_cmd_id cmd_id,
ath_dbg(common, WMI, "Timeout waiting for WMI command: %s\n",
return -ETIMEDOUT;

0 comments on commit 728c1e2

Please sign in to comment.
You can’t perform that action at this time.