OSDN Git Service

tcp: clear tp->total_retrans in tcp_disconnect()
authorEric Dumazet <edumazet@google.com>
Fri, 31 Jan 2020 17:14:47 +0000 (09:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:29:54 +0000 (16:29 -0500)
commitad871646b0c2bf9acd3c5238319487f95d3df771
treea05bba00753a87dee0d4fb9330cec4085d8ee932
parent73c29d2f6f8ae731b1e09051b69ed3ba2319482b
tcp: clear tp->total_retrans in tcp_disconnect()

[ Upstream commit c13c48c00a6bc1febc73902505bdec0967bd7095 ]

total_retrans needs to be cleared in tcp_disconnect().

tcp_disconnect() is rarely used, but it is worth fixing it.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: SeongJae Park <sjpark@amazon.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp.c