summaryrefslogtreecommitdiffstats
path: root/0001-ath9k-release-allocated-buffer-if-timed-out.patch
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2019-12-30 22:25:51 +0100
committerThorsten Leemhuis <fedora@leemhuis.info>2019-12-30 22:25:51 +0100
commit66113b437d549ef5cb58ff897309bbf3470fe7ae (patch)
treedfb736e094616feb1db35873f23d5be030180f2c /0001-ath9k-release-allocated-buffer-if-timed-out.patch
parentc2c67acf1359166b612dcb7787142229252037e5 (diff)
parent007e505ae0ba5e967c5aebf29885a44263042654 (diff)
downloadkernel-66113b437d549ef5cb58ff897309bbf3470fe7ae.tar.gz
kernel-66113b437d549ef5cb58ff897309bbf3470fe7ae.tar.xz
kernel-66113b437d549ef5cb58ff897309bbf3470fe7ae.zip
merge origin
Diffstat (limited to '0001-ath9k-release-allocated-buffer-if-timed-out.patch')
-rw-r--r--0001-ath9k-release-allocated-buffer-if-timed-out.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/0001-ath9k-release-allocated-buffer-if-timed-out.patch b/0001-ath9k-release-allocated-buffer-if-timed-out.patch
deleted file mode 100644
index db71192a3..000000000
--- a/0001-ath9k-release-allocated-buffer-if-timed-out.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 728c1e2a05e4b5fc52fab3421dce772a806612a2 Mon Sep 17 00:00:00 2001
-From: Navid Emamdoost <navid.emamdoost@gmail.com>
-Date: Fri, 6 Sep 2019 13:59:30 -0500
-Subject: [PATCH] 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 | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/drivers/net/wireless/ath/ath9k/wmi.c b/drivers/net/wireless/ath/ath9k/wmi.c
-index d1f6710ca63b..cdc146091194 100644
---- a/drivers/net/wireless/ath/ath9k/wmi.c
-+++ b/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",
- wmi_cmd_to_name(cmd_id));
- mutex_unlock(&wmi->op_mutex);
-+ kfree_skb(skb);
- return -ETIMEDOUT;
- }
-
---
-2.23.0
-