forked from luck/tmp_suning_uos_patched
gianfar: Fix kfree(skb)
Noticed by Li Yang. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5e68b772e6
commit
bd14ba842c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user