summaryrefslogtreecommitdiffstats
path: root/drivers/net/dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/dummy.c')
-rw-r--r--drivers/net/dummy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index bec5eb631..ccb0d42de 100644
--- a/drivers/net/dummy.c
+++ b/drivers/net/dummy.c
@@ -110,12 +110,12 @@ int __init dummy_init(struct net_device *dev)
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;
}