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)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Feb 2020 06:11:35 +0000 (22:11 -0800)
commitc13c48c00a6bc1febc73902505bdec0967bd7095
tree369c9abfeb3678296418d7fd0ffd8414a84324fc
parent91a7d4bf3ee3794d4090cedd17b8e865645f5f79
tcp: clear tp->total_retrans in tcp_disconnect()

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>
net/ipv4/tcp.c