]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 09:56:41 +0000 (10:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 09:56:41 +0000 (10:56 +0100)
added patches:
ath9k_htc-fix-memory-leak.patch

queue-3.0/ath9k_htc-fix-memory-leak.patch [new file with mode: 0644]
queue-3.0/series

diff --git a/queue-3.0/ath9k_htc-fix-memory-leak.patch b/queue-3.0/ath9k_htc-fix-memory-leak.patch
new file mode 100644 (file)
index 0000000..2ef0111
--- /dev/null
@@ -0,0 +1,34 @@
+From 0981c3b24ef664f5611008a6e6d0622fac6d892b Mon Sep 17 00:00:00 2001
+From: Sujith Manoharan <c_manoha@qca.qualcomm.com>
+Date: Wed, 9 Jan 2013 16:07:48 +0530
+Subject: ath9k_htc: Fix memory leak
+
+From: Sujith Manoharan <c_manoha@qca.qualcomm.com>
+
+commit 0981c3b24ef664f5611008a6e6d0622fac6d892b upstream.
+
+SKBs that are allocated in the HTC layer do not have callbacks
+registered and hence ended up not being freed, Fix this by freeing
+them properly in the TX completion routine.
+
+Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
+Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
+Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/ath/ath9k/htc_hst.c |    2 ++
+ 1 file changed, 2 insertions(+)
+
+--- a/drivers/net/wireless/ath/ath9k/htc_hst.c
++++ b/drivers/net/wireless/ath/ath9k/htc_hst.c
+@@ -342,6 +342,8 @@ void ath9k_htc_txcompletion_cb(struct ht
+                       endpoint->ep_callbacks.tx(endpoint->ep_callbacks.priv,
+                                                 skb, htc_hdr->endpoint_id,
+                                                 txok);
++              } else {
++                      kfree_skb(skb);
+               }
+       }
index 411514c2248b935c85e47e6505a5b0fcb1bcc7eb..01097411aad5a660a7e267e76128030ec5766f39 100644 (file)
@@ -4,3 +4,4 @@ can-pch_can-fix-invalid-error-codes.patch
 fs-cifs-cifs_dfs_ref.c-fix-potential-memory-leakage.patch
 arm-dma-fix-struct-page-iterator-in-dma_cache_maint-to-work-with-sparsemem.patch
 bluetooth-fix-sending-hci-commands-after-reset.patch
+ath9k_htc-fix-memory-leak.patch