]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: clear tp->delivered in tcp_disconnect()
authorEric Dumazet <edumazet@google.com>
Fri, 31 Jan 2020 18:22:47 +0000 (10:22 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 1 Feb 2020 06:12:18 +0000 (22:12 -0800)
commit8bfae2aa1dd11e3b9b97341d81eec61e355f2acb
tree352754ca5805faf5afb55188cd8087601cb07596
parent20796ce3977e3614e9c17ac2529b0ed383a59c4a
tcp: clear tp->delivered in tcp_disconnect()

tp->delivered needs to be cleared in tcp_disconnect().

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

Fixes: 9b39de3ad537 ("tcp: new delivery accounting")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c