diff options
| author | Eric Dumazet <[email protected]> | 2021-10-25 16:48:25 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-10-26 01:02:14 +0000 |
| commit | 12c8691de30734a29b84cae35a4bf1cccca6ad0a (patch) | |
| tree | aafe4c0416c1ccb732d061d9401ca760fb773490 /net/ipv6/tcp_ipv6.c | |
| parent | ipv4: guard IP_MINTTL with a static key (diff) | |
| download | kernel-12c8691de30734a29b84cae35a4bf1cccca6ad0a.tar.gz kernel-12c8691de30734a29b84cae35a4bf1cccca6ad0a.zip | |
ipv6/tcp: small drop monitor changes
Two kfree_skb() calls must be replaced by consume_skb()
for skbs that are not technically dropped.
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 6945583c0fa4..c678e778c1fb 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -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; } |
