From 6380f131f1875ab9ae50abdc09a8001be322a128 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 30 Jan 2013 10:56:41 +0100 Subject: [PATCH] 3.0-stable patches added patches: ath9k_htc-fix-memory-leak.patch --- queue-3.0/ath9k_htc-fix-memory-leak.patch | 34 +++++++++++++++++++++++ queue-3.0/series | 1 + 2 files changed, 35 insertions(+) create mode 100644 queue-3.0/ath9k_htc-fix-memory-leak.patch 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 index 00000000000..2ef01117b5a --- /dev/null +++ b/queue-3.0/ath9k_htc-fix-memory-leak.patch @@ -0,0 +1,34 @@ +From 0981c3b24ef664f5611008a6e6d0622fac6d892b Mon Sep 17 00:00:00 2001 +From: Sujith Manoharan +Date: Wed, 9 Jan 2013 16:07:48 +0530 +Subject: ath9k_htc: Fix memory leak + +From: Sujith Manoharan + +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 +Signed-off-by: Sujith Manoharan +Tested-by: Larry Finger +Signed-off-by: John W. Linville +Signed-off-by: Greg Kroah-Hartman + +--- + 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); + } + } + diff --git a/queue-3.0/series b/queue-3.0/series index 411514c2248..01097411aad 100644 --- a/queue-3.0/series +++ b/queue-3.0/series @@ -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 -- 2.47.3