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:
e21106b
)
lance: Call dev_consume_skb_any instead of dev_kfree_skb.
author
Eric W. Biederman
<ebiederm@xmission.com>
Sat, 15 Mar 2014 22:48:50 +0000
(15:48 -0700)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 25 Mar 2014 04:18:53 +0000
(21:18 -0700)
Replace dev_kfree_skb with dev_consume_skb_any in lance_start_xmit
that can be called in hard irq and other contexts.
dev_consume_skb_any is used as lance_start_xmit always immediately
consumes the skb.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
drivers/net/ethernet/amd/7990.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/amd/7990.c
b/drivers/net/ethernet/amd/7990.c
index 18e542f7853d384c60ae6aec96e2ae1a1a19e3d7..98a10d555b793e029d20b6694ba1fab7cd13a053 100644
(file)
--- a/
drivers/net/ethernet/amd/7990.c
+++ b/
drivers/net/ethernet/amd/7990.c
@@
-578,7
+578,7
@@
int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
outs++;
/* Kick the lance: transmit now */
WRITERDP(lp, LE_C0_INEA | LE_C0_TDMD);
- dev_
kfree_skb
(skb);
+ dev_
consume_skb_any
(skb);
spin_lock_irqsave(&lp->devlock, flags);
if (TX_BUFFS_AVAIL)