Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

gianfar: Fix kfree(skb)



Noticed by Li Yang.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5e68b772
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);