dev: Defer free of skbs in flush_backlog
[linux-2.6-microblaze.git] / net / core / dev.c
index 90b59fc..7a774eb 100644 (file)
@@ -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);
                }
        }