From: David S. Miller Date: Fri, 27 Mar 2009 08:10:58 +0000 (-0700) Subject: gianfar: Fix kfree(skb) X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bd14ba842cd29edbbd40e566194bd33cf0c92f6c;p=linux-2.6-omap-h63xx.git gianfar: Fix kfree(skb) Noticed by Li Yang. Signed-off-by: David S. Miller --- diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index a7a67376615..44cbf2622b4 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c @@ -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);