Re: [PATCH] fmvj18x_cs: don't reference skb after passing it to netif_rx

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Mon Feb 26 2001 - 20:57:37 EST


Ditto...

-- 
Jeff Garzik       | "You see, in this world there's two kinds of
Building 1024     |  people, my friend: Those with loaded guns
MandrakeSoft      |  and those who dig. You dig."  --Blondie

Index: drivers/net/pcmcia/fmvj18x_cs.c =================================================================== RCS file: /cvsroot/gkernel/linux_2_4/drivers/net/pcmcia/fmvj18x_cs.c,v retrieving revision 1.1.1.14.2.2 diff -u -r1.1.1.14.2.2 fmvj18x_cs.c --- drivers/net/pcmcia/fmvj18x_cs.c 2001/02/23 03:37:00 1.1.1.14.2.2 +++ drivers/net/pcmcia/fmvj18x_cs.c 2001/02/27 01:57:16 @@ -1080,8 +1080,9 @@ #endif netif_rx(skb); + dev->last_rx = jiffies; lp->stats.rx_packets++; - lp->stats.rx_bytes += skb->len; + lp->stats.rx_bytes += pkt_len; } if (--boguscount <= 0) break;

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 28 2001 - 21:00:12 EST