aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r--net/ipv4/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
index 35a786c0aaa0..e609b08c9df4 100644
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -547,7 +547,7 @@ static void ip_list_rcv_finish(struct net *net, struct sock *sk,
547 list_for_each_entry_safe(skb, next, head, list) { 547 list_for_each_entry_safe(skb, next, head, list) {
548 struct dst_entry *dst; 548 struct dst_entry *dst;
549 549
550 list_del(&skb->list); 550 skb_list_del_init(skb);
551 /* if ingress device is enslaved to an L3 master device pass the 551 /* if ingress device is enslaved to an L3 master device pass the
552 * skb to its handler for processing 552 * skb to its handler for processing
553 */ 553 */
@@ -594,7 +594,7 @@ void ip_list_rcv(struct list_head *head, struct packet_type *pt,
594 struct net_device *dev = skb->dev; 594 struct net_device *dev = skb->dev;
595 struct net *net = dev_net(dev); 595 struct net *net = dev_net(dev);
596 596
597 list_del(&skb->list); 597 skb_list_del_init(skb);
598 skb = ip_rcv_core(skb, net); 598 skb = ip_rcv_core(skb, net);
599 if (skb == NULL) 599 if (skb == NULL)
600 continue; 600 continue;