Patchwork [3.5.y.z,extended,stable] Patch "ath9k_htc: Fix memory leak" has been added to staging queue

mail settings
Submitter Herton Ronaldo Krzesinski
Date Jan. 31, 2013, 10:09 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/217262/
State New
Headers show


Herton Ronaldo Krzesinski - Jan. 31, 2013, 10:09 p.m.
This is a note to let you know that I have just added a patch titled

    ath9k_htc: Fix memory leak

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see



From 0f6d4ea0d9f57597dd1b7949da8848278e7aa3bc Mon Sep 17 00:00:00 2001
From: Sujith Manoharan <>
Date: Wed, 9 Jan 2013 16:07:48 +0530
Subject: [PATCH] ath9k_htc: Fix memory leak

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: Herton Ronaldo Krzesinski <>
 drivers/net/wireless/ath/ath9k/htc_hst.c |    2 ++
 1 file changed, 2 insertions(+)



diff --git a/drivers/net/wireless/ath/ath9k/htc_hst.c b/drivers/net/wireless/ath/ath9k/htc_hst.c
index 4a9570d..aac4a40 100644
--- a/drivers/net/wireless/ath/ath9k/htc_hst.c
+++ b/drivers/net/wireless/ath/ath9k/htc_hst.c
@@ -344,6 +344,8 @@  void ath9k_htc_txcompletion_cb(struct htc_target *htc_handle,
 						  skb, htc_hdr->endpoint_id,
+		} else {
+			kfree_skb(skb);