]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: clear tp->segs_{in|out} in tcp_disconnect()
authorEric Dumazet <edumazet@google.com>
Fri, 31 Jan 2020 18:44:50 +0000 (10:44 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Feb 2020 06:12:37 +0000 (22:12 -0800)
commit28f75a3187e2f6391bc236f1f50b48e7da93f41f
tree6473ac3d3b5bb7bbb10e64c6a36eca467d71a088
parentd1ddac19f76fefb5a97e5c3cbaa8b2aa4cdb9093
tcp: clear tp->segs_{in|out} in tcp_disconnect()

tp->segs_in and tp->segs_out need to be cleared in tcp_disconnect().

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

Fixes: 5a112014ff8f ("tcp: add tcpi_segs_in and tcpi_segs_out to tcp_info")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Marcelo Ricardo Leitner <mleitner@redhat.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c