projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e68b77
)
gianfar: Fix kfree(skb)
author
David S. Miller
<davem@davemloft.net>
Fri, 27 Mar 2009 08:10:58 +0000
(
01:10
-0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 27 Mar 2009 08:10:58 +0000
(
01:10
-0700)
Noticed by Li Yang.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c
patch
|
blob
|
history
diff --git
a/drivers/net/gianfar.c
b/drivers/net/gianfar.c
index a7a67376615bd1a9e4086682c9fac35fd1d84a7e..44cbf2622b46e826375eabba915026403dea5e16 100644
(file)
--- 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);