summaryrefslogtreecommitdiff
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
commit802ea84054cc94748abe29a54bfe38f9e104923b (patch)
tree43d116fe424a1d26f0ffe1d6bdba781e9b72521e /package/madwifi
parent0e2e5cae7ab908ea5037937ea51c24e267024705 (diff)
downloadmtk-20170518-802ea84054cc94748abe29a54bfe38f9e104923b.zip
mtk-20170518-802ea84054cc94748abe29a54bfe38f9e104923b.tar.gz
mtk-20170518-802ea84054cc94748abe29a54bfe38f9e104923b.tar.bz2
madwifi: fix a theoretical tx buffer leak
SVN-Revision: 17690
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 0000000..9fd5ecb
--- /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++;