Skip to content

Commit

Permalink
gianfar: Fix kfree(skb)
Browse files Browse the repository at this point in the history
Noticed by Li Yang.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 27, 2009
1 parent 5e68b77 commit bd14ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bd14ba8

Please sign in to comment.