diff options
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index a95782764360..b430f851f377 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -5017,8 +5017,10 @@ static inline void __netif_receive_skb_list_ptype(struct list_head *head, | |||
5017 | if (pt_prev->list_func != NULL) | 5017 | if (pt_prev->list_func != NULL) |
5018 | pt_prev->list_func(head, pt_prev, orig_dev); | 5018 | pt_prev->list_func(head, pt_prev, orig_dev); |
5019 | else | 5019 | else |
5020 | list_for_each_entry_safe(skb, next, head, list) | 5020 | list_for_each_entry_safe(skb, next, head, list) { |
5021 | skb_list_del_init(skb); | ||
5021 | pt_prev->func(skb, skb->dev, pt_prev, orig_dev); | 5022 | pt_prev->func(skb, skb->dev, pt_prev, orig_dev); |
5023 | } | ||
5022 | } | 5024 | } |
5023 | 5025 | ||
5024 | static void __netif_receive_skb_list_core(struct list_head *head, bool pfmemalloc) | 5026 | static void __netif_receive_skb_list_core(struct list_head *head, bool pfmemalloc) |