Re: [PATCH v3] net: add Faraday FTMAC100 10/100 Ethernet driver

From: Eric Dumazet
Date: Thu Jan 20 2011 - 10:35:59 EST


Le jeudi 20 janvier 2011 Ã 23:30 +0800, Po-Yu Chuang a Ãcrit :

> + /* push packet to protocol stack */
> + netif_receive_skb(skb);
> +
> + netdev->stats.rx_packets++;
> + netdev->stats.rx_bytes += skb->len;
> +
> + (*processed)++;
> +
> + return true;
> +}
> +

Hmm, after call to netif_receive_skb(skb), you are not allowed to access
skb anymore (maybe it was freed)

netdev->stats.rx_packets++;
netdev->stats.rx_bytes += skb->len;
netif_receive_skb(skb);



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