aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-23 13:33:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-09-23 13:33:06 +0000
commit1236278dfff7703871225694b2ed9c088a1db56b (patch)
treef37508d7feb2929d88da6fc98a5974d8ca1112ef /package/madwifi
parent2e2f37ef79effe2db505b99235d51c7b4aea91d9 (diff)
downloadupstream-1236278dfff7703871225694b2ed9c088a1db56b.tar.gz
upstream-1236278dfff7703871225694b2ed9c088a1db56b.tar.bz2
upstream-1236278dfff7703871225694b2ed9c088a1db56b.zip
madwifi: fix a theoretical tx buffer leak
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17690 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/449-fix_txbuf_leak.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/madwifi/patches/449-fix_txbuf_leak.patch b/package/madwifi/patches/449-fix_txbuf_leak.patch
new file mode 100644
index 0000000000..9fd5ecb74c
--- /dev/null
+++ b/package/madwifi/patches/449-fix_txbuf_leak.patch
@@ -0,0 +1,10 @@
+--- a/ath/if_ath.c
++++ b/ath/if_ath.c
+@@ -3725,6 +3725,7 @@ ff_bypass:
+ */
+ skb = ieee80211_encap(ni, skb, &framecnt);
+ if (skb == NULL) {
++ STAILQ_INSERT_TAIL(&bf_head, bf, bf_list);
+ DPRINTF(sc, ATH_DEBUG_XMIT,
+ "Dropping; encapsulation failure\n");
+ sc->sc_stats.ast_tx_encap++;