All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fmvj18x_cs: don't reference skb after passing it to netif_rx
@ 2001-02-27  0:14 Arnaldo Carvalho de Melo
  2001-02-27  0:41 ` [PATCH] tms380tr: update last_rx after netif_rx Arnaldo Carvalho de Melo
  2001-02-27  1:57 ` [PATCH] fmvj18x_cs: don't reference skb after passing it to netif_rx Jeff Garzik
  0 siblings, 2 replies; 4+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-02-27  0:14 UTC (permalink / raw)
  To: Alan Cox, shingo, linux-kernel

another pcmcia one

Em Mon, Feb 26, 2001 at 08:33:59PM -0300, Arnaldo Carvalho de Melo escreveu:
Hi,

	I've just read davem's post at netdev about the brokeness of
referencing skbs after passing it to netif_rx, so please consider applying
this patch. Ah, this was just added to the Janitor's TODO list at
http://bazar.conectiva.com.br/~acme/TODO and I'm doing a quick audit in the
net drivers searching for this, maybe some more patches will follow.

- Arnaldo

--- linux-2.4.2/drivers/net/pcmcia/fmvj18x_cs.c	Tue Feb 13 19:15:05 2001
+++ linux-2.4.2.acme/drivers/net/pcmcia/fmvj18x_cs.c	Mon Feb 26 22:45:53 2001
@@ -994,9 +994,9 @@
 	    }
 #endif
 
+	    lp->stats.rx_bytes += skb->len;
 	    netif_rx(skb);
 	    lp->stats.rx_packets++;
-	    lp->stats.rx_bytes += skb->len;
 	}
 	if (--boguscount <= 0)
 	    break;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-27  2:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-27  0:14 [PATCH] fmvj18x_cs: don't reference skb after passing it to netif_rx Arnaldo Carvalho de Melo
2001-02-27  0:41 ` [PATCH] tms380tr: update last_rx after netif_rx Arnaldo Carvalho de Melo
2001-02-27  1:57 ` [PATCH] fmvj18x_cs: don't reference skb after passing it to netif_rx Jeff Garzik
2001-02-27  0:25   ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.