]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tcp: clear tp->data_segs{in|out} in tcp_disconnect()
authorEric Dumazet <edumazet@google.com>
Fri, 31 Jan 2020 18:32:41 +0000 (10:32 -0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 13 Mar 2020 04:31:00 +0000 (00:31 -0400)
commit5ac8c89ff399addbd3ab80987a69d2ef0aa63c4c
tree4cfc49f677a11bf337d44c466f408f6162b7de1d
parent53e3d867208387426df38ea365b53bfa829fff39
tcp: clear tp->data_segs{in|out} in tcp_disconnect()

BugLink: https://bugs.launchpad.net/bugs/1866678
[ Upstream commit db7ffee6f3eb3683cdcaeddecc0a630a14546fe3 ]

tp->data_segs_in and tp->data_segs_out need to be cleared
in tcp_disconnect().

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

Fixes: a44d6eacdaf5 ("tcp: Add RFC4898 tcpEStatsPerfDataSegsOut/In")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Martin KaFai Lau <kafai@fb.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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/ipv4/tcp.c