]> 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)
commitb12882ee304a1290b149ffde03df80bd0148f2ec
tree352754ca5805faf5afb55188cd8087601cb07596
parent8df7e65dd37a6c8eb2eb95fda5f089ec330aba82
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: e3fc53901c72 ("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