tcp: fix off-by-one bug on aborting window-probing socket
authorYuchung Cheng <ycheng@google.com>
Thu, 29 Nov 2018 00:06:43 +0000 (16:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Dec 2018 01:22:41 +0000 (17:22 -0800)
commit3976535af0cb9fe34a55f2ffb8d7e6b39a2f8188
treef0dd1d7bf303e1a7b4bc668ccdcf24bc041ae0b2
parentc0f53771ba45745e5870daf880127925c93f232f
tcp: fix off-by-one bug on aborting window-probing socket

Previously there is an off-by-one bug on determining when to abort
a stalled window-probing socket. This patch fixes that so it is
consistent with tcp_write_timeout().

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_timer.c