Commit bd14ba84 authored by David S. Miller's avatar David S. Miller

gianfar: Fix kfree(skb)

Noticed by Li Yang.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5e68b772
......@@ -1317,7 +1317,7 @@ static int gfar_start_xmit(struct sk_buff *skb, struct net_device *dev)
skb_new = skb_realloc_headroom(skb, GMAC_FCB_LEN);
if (!skb_new) {
dev->stats.tx_errors++;
kfree(skb);
kfree_skb(skb);
return NETDEV_TX_OK;
}
kfree_skb(skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment