madwifi: fix a theoretical tx buffer leak
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Sep 2009 13:33:06 +0000 (13:33 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 23 Sep 2009 13:33:06 +0000 (13:33 +0000)
SVN-Revision: 17690

package/madwifi/patches/449-fix_txbuf_leak.patch [new file with mode: 0644]

diff --git a/package/madwifi/patches/449-fix_txbuf_leak.patch b/package/madwifi/patches/449-fix_txbuf_leak.patch
new file mode 100644 (file)
index 0000000..9fd5ecb
--- /dev/null
@@ -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++;