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 2b67f2aa59dd..fdcff29df915 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -5014,8 +5014,10 @@ static inline void __netif_receive_skb_list_ptype(struct list_head *head, | |||
5014 | if (pt_prev->list_func != NULL) | 5014 | if (pt_prev->list_func != NULL) |
5015 | pt_prev->list_func(head, pt_prev, orig_dev); | 5015 | pt_prev->list_func(head, pt_prev, orig_dev); |
5016 | else | 5016 | else |
5017 | list_for_each_entry_safe(skb, next, head, list) | 5017 | list_for_each_entry_safe(skb, next, head, list) { |
5018 | skb_list_del_init(skb); | ||
5018 | pt_prev->func(skb, skb->dev, pt_prev, orig_dev); | 5019 | pt_prev->func(skb, skb->dev, pt_prev, orig_dev); |
5020 | } | ||
5019 | } | 5021 | } |
5020 | 5022 | ||
5021 | static void __netif_receive_skb_list_core(struct list_head *head, bool pfmemalloc) | 5023 | static void __netif_receive_skb_list_core(struct list_head *head, bool pfmemalloc) |