Skip to content

Commit 25776aa

Browse files
tracywwnjdavem330
authored andcommitted
net: Remove __sk_dst_reset() in tcp_v6_connect()
Remove __sk_dst_reset() in the failure handling because __sk_dst_reset() will eventually get called when sk is released. No need to handle it in the protocol specific connect call. This is also to make the code path consistent with ipv4. Signed-off-by: Wei Wang <weiwan@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 065263f commit 25776aa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/ipv6/tcp_ipv6.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ static int tcp_v6_connect(struct sock *sk, struct sockaddr *uaddr,
295295

296296
late_failure:
297297
tcp_set_state(sk, TCP_CLOSE);
298-
__sk_dst_reset(sk);
299298
failure:
300299
inet->inet_dport = 0;
301300
sk->sk_route_caps = 0;

0 commit comments

Comments
 (0)