patch-2.4.3 linux/drivers/net/wan/comx-proto-fr.c

Next file: linux/drivers/net/wan/comx-proto-lapb.c
Previous file: linux/drivers/net/wan/c101.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/drivers/net/wan/comx-proto-fr.c linux/drivers/net/wan/comx-proto-fr.c
@@ -505,9 +505,9 @@
 		struct sk_buff *newskb=skb_clone(skb, GFP_ATOMIC);
 		newskb->dev=fr->master;
 		dev_queue_xmit(newskb);
-		dev_kfree_skb(skb);
-		ch->stats.tx_packets++;
 		ch->stats.tx_bytes += skb->len;
+		ch->stats.tx_packets++;
+		dev_kfree_skb(skb);
 	} else {
 		netif_stop_queue(dev);
 		for (; dir ; dir = dir->next) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)