projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b6da5f
)
virtio_net: Call dev_kfree_skb_any instead of dev_kfree_skb.
author
Eric W. Biederman
<ebiederm@xmission.com>
Sun, 16 Mar 2014 01:43:33 +0000
(18:43 -0700)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 25 Mar 2014 04:19:25 +0000
(21:19 -0700)
Replace dev_kfree_skb with dev_kfree_skb_any in start_xmit which can
be called in hard irq and other contexts.
start_xmit only frees skbs that it is dropping.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
drivers/net/virtio_net.c
patch
|
blob
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index 80d84c446962362ba6d6124d43e8ec7bd753aef0..99fa48c941c65dd55faf8c4e9e3193ceb87438f7 100644
(file)
--- a/
drivers/net/virtio_net.c
+++ b/
drivers/net/virtio_net.c
@@
-883,7
+883,7
@@
static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
dev_warn(&dev->dev,
"Unexpected TXQ (%d) queue failure: %d\n", qnum, err);
dev->stats.tx_dropped++;
-
kfree_skb
(skb);
+
dev_kfree_skb_any
(skb);
return NETDEV_TX_OK;
}