patch-2.4.0-test2 linux/drivers/net/dummy.c
Next file: linux/drivers/net/e2100.c
Previous file: linux/drivers/net/dmfe.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Thu Jun 22 07:23:26 2000
- Orig file:
v2.4.0-test1/linux/drivers/net/dummy.c
- Orig date:
Thu May 11 15:30:07 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/dummy.c linux/drivers/net/dummy.c
@@ -110,12 +110,12 @@
static int dummy_xmit(struct sk_buff *skb, struct net_device *dev)
{
struct net_device_stats *stats;
- dev_kfree_skb(skb);
stats = (struct net_device_stats *)dev->priv;
stats->tx_packets++;
stats->tx_bytes+=skb->len;
+ dev_kfree_skb(skb);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)