]> git.baikalelectronics.ru Git - kernel.git/commit
net: Remove __sk_dst_reset() in tcp_v6_connect()
authorWei Wang <weiwan@google.com>
Mon, 23 Jan 2017 18:59:21 +0000 (10:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Jan 2017 19:04:38 +0000 (14:04 -0500)
commit0b3db1cc48bb180ade42bdcd5da8c0b8ce5f95aa
treea84a7f46ab21c65a7491b719dfaa7bc926270d1e
parent647c247847b1e316a89955c6b7e40327d9e31d2b
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>
net/ipv6/tcp_ipv6.c