mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-19 06:54:58 +01:00
madwifi: fix a theoretical tx buffer leak
SVN-Revision: 17690
This commit is contained in:
parent
0e2e5cae7a
commit
802ea84054
10
package/madwifi/patches/449-fix_txbuf_leak.patch
Normal file
10
package/madwifi/patches/449-fix_txbuf_leak.patch
Normal file
@ -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
Block a user