tcp: tcp_v4_err() should be more careful
authorEric Dumazet <edumazet@google.com>
Fri, 15 Feb 2019 21:36:21 +0000 (13:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 23:46:58 +0000 (15:46 -0800)
commit2c4cc9712364c051b1de2d175d5fbea6be948ebf
tree26a96c9f5c6762780a5941fddcb326eb8a555449
parent04c03114be82194d4a4858d41dba8e286ad1787c
tcp: tcp_v4_err() should be more careful

ICMP handlers are not very often stressed, we should
make them more resilient to bugs that might surface in
the future.

If there is no packet in retransmit queue, we should
avoid a NULL deref.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: soukjin bae <soukjin.bae@samsung.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c