Skip to contentSkip to conversation

d80211: update tx.skb after TX handler calls

PATCH New Jiri Benc 1 participant 1 message Jun 12, 2006

Subsystems (2)
lore
Share & tools
lore

Jiri Benc

author
#0 lore raw

PATCH 1/1 d80211: update tx.skb after TX handler calls

TX and RX handlers are allowed to change skb. Fix (hopefully) the last place where this is not taken into account.

---

 net/d80211/ieee80211.c |    1 +
 1 files changed, 1 insertion(+)
net/d80211/ieee80211.c +1 -0
@@ -1760,6 +1760,7 @@ ieee80211_get_buffered_bc(struct net_dev
 			break;
 	}
 	dev_put(tx.dev);
+	skb = tx.skb; /* handlers are allowed to change skb */
 
 	if (res == TXRX_DROP) {
 		I802_DEBUG_INC(local->tx_handlers_drop);