提交 bd14ba84 编写于 作者: D David S. Miller

gianfar: Fix kfree(skb)

Noticed by Li Yang.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册