summaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-03-27 01:10:58 -0700
committerDavid S. Miller <davem@davemloft.net>2009-03-27 01:10:58 -0700
commitbd14ba842cd29edbbd40e566194bd33cf0c92f6c (patch)
tree3f95479eb945f9741339abc4fdeae7e4716ffed3 /drivers/net/gianfar.c
parent5e68b772e6efd189d6aca76f6872fb75d51ace60 (diff)
downloadblackbird-op-linux-bd14ba842cd29edbbd40e566194bd33cf0c92f6c.tar.gz
blackbird-op-linux-bd14ba842cd29edbbd40e566194bd33cf0c92f6c.zip
gianfar: Fix kfree(skb)
Noticed by Li Yang. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r--drivers/net/gianfar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index a7a67376615b..44cbf2622b46 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);
OpenPOWER on IntegriCloud