Skip to contentSkip to conversation

skb used after passing to netif_rx in net/ieee80211/ieee80211_rx.c

PATCH New Eric Sesterhenn 1 participant 1 message Jun 21, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 skb used after passing to netif_rx in net/ieee80211/ieee80211_rx.c

hi,

this patch fixes coverity id #913. ieee80211_monitor_rx() passes the skb to netif_rx() and we should not reference it any longer.

net/ieee80211/ieee80211_rx.c renamed from net/ieee80211/ieee80211_rx.c.orig +1 -1
@@ -403,9 +403,9 @@ int ieee80211_rx(struct ieee80211_device
 #endif
 
 	if (ieee->iw_mode == IW_MODE_MONITOR) {
-		ieee80211_monitor_rx(ieee, skb, rx_stats);
 		stats->rx_packets++;
 		stats->rx_bytes += skb->len;
+		ieee80211_monitor_rx(ieee, skb, rx_stats);
 		return 1;
 	}