OSDN Git Service

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)
commit2fbdd56251b5c62f96589f39eded277260de7267
tree352754ca5805faf5afb55188cd8087601cb07596
parentc13c48c00a6bc1febc73902505bdec0967bd7095
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: ddf1af6fa00e ("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