Skip to content

Commit d109acd

Browse files
Subash Abhinov Kasiviswanathangregkh
authored andcommitted
dev: Defer free of skbs in flush_backlog
[ Upstream commit 7df5cb7 ] 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]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 52aeeec commit d109acd

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
@@ -5229,7 +5229,7 @@ static void flush_backlog(struct work_struct *work)
52295229
skb_queue_walk_safe(&sd->input_pkt_queue, skb, tmp) {
52305230
if (skb->dev->reg_state == NETREG_UNREGISTERING) {
52315231
__skb_unlink(skb, &sd->input_pkt_queue);
5232-
kfree_skb(skb);
5232+
dev_kfree_skb_irq(skb);
52335233
input_queue_head_incr(sd);
52345234
}
52355235
}

0 commit comments

Comments
 (0)