projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1b7181
)
xen-netfront: Call dev_kfree_skb_any instead of dev_kfree_skb.
author
Eric W. Biederman
<ebiederm@xmission.com>
Sun, 16 Mar 2014 01:33:04 +0000
(18:33 -0700)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 25 Mar 2014 04:19:23 +0000
(21:19 -0700)
Replace dev_kfree_skb with dev_kfree_skb_any in xennet_start_xmit
which can be called in hard irq and other contexts. xennet_start_xmit
only fress skbs which it drops.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
drivers/net/xen-netfront.c
patch
|
blob
|
history
diff --git
a/drivers/net/xen-netfront.c
b/drivers/net/xen-netfront.c
index 49f3b3dbbed8aab42a406445c5db8a1272fcc1e9..057b05700f8baa081014d80b1142e7b2a7808489 100644
(file)
--- a/
drivers/net/xen-netfront.c
+++ b/
drivers/net/xen-netfront.c
@@
-658,7
+658,7
@@
static int xennet_start_xmit(struct sk_buff *skb, struct net_device *dev)
drop:
dev->stats.tx_dropped++;
- dev_kfree_skb(skb);
+ dev_kfree_skb
_any
(skb);
return NETDEV_TX_OK;
}