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>

authored by

Florin Malita and committed by
Jeff Garzik
93c1d3b7 e9712901

+3 -3
+3 -3
drivers/net/spider_net.c
··· 1014 1014 */ 1015 1015 } 1016 1016 1017 - /* pass skb up to stack */ 1018 - netif_receive_skb(skb); 1019 - 1020 1017 /* update netdevice statistics */ 1021 1018 card->netdev_stats.rx_packets++; 1022 1019 card->netdev_stats.rx_bytes += skb->len; 1020 + 1021 + /* pass skb up to stack */ 1022 + netif_receive_skb(skb); 1023 1023 } 1024 1024 1025 1025 #ifdef DEBUG