spidernet: skb used after netif_receive_skb
commit93c1d3b790673bb2a7489d6f165c5c99a7f44baf
authorFlorin Malita <fmalita@gmail.com>
Tue, 22 May 2007 23:09:42 +0000 (22 18:09 -0500)
committerJeff Garzik <jeff@garzik.org>
Thu, 24 May 2007 21:25:43 +0000 (24 17:25 -0400)
tree08514dbd16c00755818fcece92d2da26df3830c7
parente971290133d8151c468cd70206fedc92648feb58
spidernet: skb used after netif_receive_skb

The stats update code in spider_net_pass_skb_up() is touching the skb
after it's been passed up to the stack. To avoid that, just update the
stats first.

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/spider_net.c