From 35d33ee673d75825a0e746cfb5131953abc40970 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 23 Sep 2009 13:33:06 +0000 Subject: madwifi: fix a theoretical tx buffer leak git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17690 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/madwifi/patches/449-fix_txbuf_leak.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 package/madwifi/patches/449-fix_txbuf_leak.patch 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 000000000..9fd5ecb74 --- /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++; -- cgit v1.2.3