diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-03-11 14:19:50 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-29 10:31:49 +0200 |
commit | d2be4e171cca7abf12e4df50fecabdf629af1cf1 (patch) | |
tree | 7ac12406736312599363b9c9a00b1b9ef9690202 /drivers/net/ethernet | |
parent | 50446d9009abdb6d7ffc3c92785cbcb4fa5761fe (diff) | |
download | lwn-d2be4e171cca7abf12e4df50fecabdf629af1cf1.tar.gz lwn-d2be4e171cca7abf12e4df50fecabdf629af1cf1.zip |
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet')
-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 80bfa0391913..075e7e7abea9 100644 --- a/drivers/net/ethernet/emulex/benet/be_main.c +++ b/drivers/net/ethernet/emulex/benet/be_main.c @@ -1883,7 +1883,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; } |