summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>2020-07-23 11:31:48 -0600
committerDavid S. Miller <davem@davemloft.net>2020-07-24 19:59:22 -0700
commit7df5cb75cfb8acf96c7f2342530eb41e0c11f4c3 (patch)
tree0b5782d4828dde5370aad8f386803651288c0c1c
parentaf9f691f0f5bdd1ade65a7b84927639882d7c3e5 (diff)
downloadlinux-7df5cb75cfb8acf96c7f2342530eb41e0c11f4c3.tar.bz2
dev: Defer free of skbs in flush_backlog
IRQs are disabled when freeing skbs in input queue. Use the IRQ safe variant to free skbs here. Fixes: 145dd5f9c88f ("net: flush the softnet backlog in process context") Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 90b59fc50dc9..7a774ebf64e2 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5601,7 +5601,7 @@ static void flush_backlog(struct work_struct *work)
skb_queue_walk_safe(&sd->input_pkt_queue, skb, tmp) {
if (skb->dev->reg_state == NETREG_UNREGISTERING) {
__skb_unlink(skb, &sd->input_pkt_queue);
- kfree_skb(skb);
+ dev_kfree_skb_irq(skb);
input_queue_head_incr(sd);
}
}