Skip to content

Commit 7df5cb7

Browse files
Subash Abhinov Kasiviswanathandavem330
authored andcommitted
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: 145dd5f ("net: flush the softnet backlog in process context") Signed-off-by: Subash Abhinov Kasiviswanathan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent af9f691 commit 7df5cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5601,7 +5601,7 @@ static void flush_backlog(struct work_struct *work)
56015601
skb_queue_walk_safe(&sd->input_pkt_queue, skb, tmp) {
56025602
if (skb->dev->reg_state == NETREG_UNREGISTERING) {
56035603
__skb_unlink(skb, &sd->input_pkt_queue);
5604-
kfree_skb(skb);
5604+
dev_kfree_skb_irq(skb);
56055605
input_queue_head_incr(sd);
56065606
}
56075607
}

0 commit comments

Comments
 (0)