diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-11 21:19:50 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-12 20:22:13 (GMT) |
commit | d8ec2c02caa3515f35d6c33eedf529394c419298 (patch) | |
tree | ad13374bac663861beec47d28e54bd16ba9d4a47 /drivers/net | |
parent | e81f44b66b456a7dcfbdeffeb355458cd6a58973 (diff) | |
download | linux-d8ec2c02caa3515f35d6c33eedf529394c419298.tar.xz |
benet: Call dev_kfree_skby_any instead of kfree_skb.
Replace free_skb with dev_kfree_skb_any in be_tx_compl_process as
which can be called in hard irq by netpoll, softirq context
by normal napi polling, and in normal sleepable context
by the network device close method.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c index 4173693..239273b 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -1919,7 +1919,7 @@ static u16 be_tx_compl_process(struct be_adapter *adapter, queue_tail_inc(txq); } while (cur_index != last_index); - kfree_skb(sent_skb); + dev_kfree_skb_any(sent_skb); return num_wrbs; } |