diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-11 14:14:58 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-12 16:22:12 -0400 |
commit | 508f81d517ed1f3f0197df63ea7ab5cd91b6f3b3 (patch) | |
tree | 839de42238b4281b7b4b030e773dcb97afe34196 /drivers/net/ethernet/realtek/8139cp.c | |
parent | d52afde96ffda8c9d3f0e32ffe87b6cc3290580e (diff) | |
download | linux-508f81d517ed1f3f0197df63ea7ab5cd91b6f3b3.tar.bz2 |
8139cp: Call dev_kfree_skby_any instead of kfree_skb.
Replace kfree_skb with dev_kfree_skb_any in cp_start_xmit
as it can be called in both hard irq and other contexts.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek/8139cp.c')
-rw-r--r-- | drivers/net/ethernet/realtek/8139cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c index 737c1a881f78..a3c1daa7ad5c 100644 --- a/drivers/net/ethernet/realtek/8139cp.c +++ b/drivers/net/ethernet/realtek/8139cp.c @@ -899,7 +899,7 @@ out_unlock: return NETDEV_TX_OK; out_dma_error: - kfree_skb(skb); + dev_kfree_skb_any(skb); cp->dev->stats.tx_dropped++; goto out_unlock; } |