summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/511-ath9k_completion_buffer_leak.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-07-07 17:03:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-07-07 17:03:00 +0000
commitc2e40eeace3af76767116f9912493a38f9888c55 (patch)
treecb79659dbe88f514d1be993f10cad2517d6f3673 /package/mac80211/patches/511-ath9k_completion_buffer_leak.patch
parent29ac8cfbf72d7160ad01177497a6f517bd3100f8 (diff)
downloadmtk-20170518-c2e40eeace3af76767116f9912493a38f9888c55.zip
mtk-20170518-c2e40eeace3af76767116f9912493a38f9888c55.tar.gz
mtk-20170518-c2e40eeace3af76767116f9912493a38f9888c55.tar.bz2
mac80211: update to wireless-testing 2010-07-06, add another patch to finally fix the annoying buffer leak in ath9k
SVN-Revision: 22088
Diffstat (limited to 'package/mac80211/patches/511-ath9k_completion_buffer_leak.patch')
-rw-r--r--package/mac80211/patches/511-ath9k_completion_buffer_leak.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mac80211/patches/511-ath9k_completion_buffer_leak.patch b/package/mac80211/patches/511-ath9k_completion_buffer_leak.patch
new file mode 100644
index 0000000..709e284
--- /dev/null
+++ b/package/mac80211/patches/511-ath9k_completion_buffer_leak.patch
@@ -0,0 +1,21 @@
+--- a/drivers/net/wireless/ath/ath9k/xmit.c
++++ b/drivers/net/wireless/ath/ath9k/xmit.c
+@@ -329,6 +329,7 @@ static void ath_tx_complete_aggr(struct
+ int isaggr, txfail, txpending, sendbar = 0, needreset = 0, nbad = 0;
+ bool rc_update = true;
+ struct ieee80211_tx_rate rates[4];
++ unsigned long flags;
+
+ skb = bf->bf_mpdu;
+ hdr = (struct ieee80211_hdr *)skb->data;
+@@ -344,6 +345,10 @@ static void ath_tx_complete_aggr(struct
+ sta = ieee80211_find_sta_by_hw(hw, hdr->addr1);
+ if (!sta) {
+ rcu_read_unlock();
++
++ spin_lock_irqsave(&sc->tx.txbuflock, flags);
++ list_splice_tail_init(bf_q, &sc->tx.txbuf);
++ spin_unlock_irqrestore(&sc->tx.txbuflock, flags);
+ return;
+ }
+