]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: exit if nothing to retransmit on RTO timeout
authorYuchung Cheng <ycheng@google.com>
Wed, 16 Jan 2019 23:05:28 +0000 (15:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jan 2019 23:12:26 +0000 (15:12 -0800)
commitf78c54ec5d54abb2b7e930288839134e1114a745
treef31cbddb0cc70e708a7c6e27107410fd47685a49
parent286d7ae6037dc70ca4ead2aed6ecaf85f835ccae
tcp: exit if nothing to retransmit on RTO timeout

Previously TCP only warns if its RTO timer fires and the
retransmission queue is empty, but it'll cause null pointer
reference later on. It's better to avoid such catastrophic failure
and simply exit with a warning.

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