]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20796ce3977e3614e9c17ac2529b0ed383a59c4a
tree369c9abfeb3678296418d7fd0ffd8414a84324fc
parent06213d97fc24b7e31704de54149c079f26905d59
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