diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-16 02:20:12 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-25 05:19:13 +0100 |
commit | 20eca054e9d90db3d6181e35d7425dfb79d5cd00 (patch) | |
tree | 6b3757d0187ba28f4d94f73aa92422b6a1aee333 /drivers/net/ethernet/toshiba | |
parent | tilepro: Call dev_consume_skb_any instead of kfree_skb. (diff) | |
download | linux-20eca054e9d90db3d6181e35d7425dfb79d5cd00.tar.xz linux-20eca054e9d90db3d6181e35d7425dfb79d5cd00.zip |
spider_net: Call dev_consume_skb_any instead of dev_kfree_skb.
Replace dev_kfree_skb with dev_consume_skb_any in
spider_net_release_tx_chain which can be called in hard irq and other
contexts.
dev_consume_skb_any was choosen as it preserves the current
dev_kfree_skb semantics (dev_kfree_skb is consume_skb) and
is because it is correct most of the time as most packets
will have been successfully transmitted not dropeed.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'drivers/net/ethernet/toshiba')
-rw-r--r-- | drivers/net/ethernet/toshiba/spider_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/toshiba/spider_net.c b/drivers/net/ethernet/toshiba/spider_net.c index 3f4a32e39d27..0282d0161859 100644 --- a/drivers/net/ethernet/toshiba/spider_net.c +++ b/drivers/net/ethernet/toshiba/spider_net.c @@ -860,7 +860,7 @@ spider_net_release_tx_chain(struct spider_net_card *card, int brutal) if (skb) { pci_unmap_single(card->pdev, buf_addr, skb->len, PCI_DMA_TODEVICE); - dev_kfree_skb(skb); + dev_consume_skb_any(skb); } } return 0; |