aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r--drivers/net/gianfar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index a7a67376615b..44cbf2622b46 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -1317,7 +1317,7 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev)
1317 skb_new = skb_realloc_headroom(skb, GMAC_FCB_LEN); 1317 skb_new = skb_realloc_headroom(skb, GMAC_FCB_LEN);
1318 if (!skb_new) { 1318 if (!skb_new) {
1319 dev->stats.tx_errors++; 1319 dev->stats.tx_errors++;
1320 kfree(skb); 1320 kfree_skb(skb);
1321 return NETDEV_TX_OK; 1321 return NETDEV_TX_OK;
1322 } 1322 }
1323 kfree_skb(skb); 1323 kfree_skb(skb);