netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch] skb used after passing to netif_rx in net/ieee80211/ieee80211_rx.c
@ 2006-06-21 19:05 Eric Sesterhenn
  0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn @ 2006-06-21 19:05 UTC (permalink / raw)
  To: netdev

hi,

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

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>

--- linux-2.6/net/ieee80211/ieee80211_rx.c.orig	2006-06-21 21:02:16.000000000 +0200
+++ linux-2.6/net/ieee80211/ieee80211_rx.c	2006-06-21 21:02:59.000000000 +0200
@@ -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;
 	}
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-21 19:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-21 19:05 [Patch] skb used after passing to netif_rx in net/ieee80211/ieee80211_rx.c Eric Sesterhenn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).