OSDN Git Service

ipv6/tcp: small drop monitor changes
authorEric Dumazet <edumazet@google.com>
Mon, 25 Oct 2021 16:48:25 +0000 (09:48 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Oct 2021 01:02:14 +0000 (18:02 -0700)
Two kfree_skb() calls must be replaced by consume_skb()
for skbs that are not technically dropped.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/tcp_ipv6.c

index 6945583..c678e77 100644 (file)
@@ -572,7 +572,7 @@ done:
 static void tcp_v6_reqsk_destructor(struct request_sock *req)
 {
        kfree(inet_rsk(req)->ipv6_opt);
-       kfree_skb(inet_rsk(req)->pktopts);
+       consume_skb(inet_rsk(req)->pktopts);
 }
 
 #ifdef CONFIG_TCP_MD5SIG
@@ -1594,7 +1594,7 @@ ipv6_pktoptions:
                }
        }
 
-       kfree_skb(opt_skb);
+       consume_skb(opt_skb);
        return 0;
 }