madwifi: fix a theoretical tx buffer leak
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17690 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
2e2f37ef79
commit
1236278dff
|
@ -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++;
|
Loading…
Reference in New Issue