aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2018-11-09 04:04:51 -0500
committerDavid S. Miller <davem@davemloft.net>2018-11-09 18:16:29 -0500
commite6e8869aed897a021fafa6f412e9e4b7e2ea6cd3 (patch)
tree616f7baee9ce68fb1ab53b45b5af1c3e47fbb5dc /net/ipv4/tcp_ipv4.c
parent307f39b021995db67b2f39da7af006e2376fb452 (diff)
net: tcp: remove BUG_ON from tcp_v4_err
if skb is NULL pointer, and the following access of skb's skb_mstamp_ns will trigger panic, which is same as BUG_ON Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index a336787d75e5..5424a4077c27 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -542,7 +542,6 @@ int tcp_v4_err(struct sk_buff *icmp_skb, u32 info)
542 icsk->icsk_rto = inet_csk_rto_backoff(icsk, TCP_RTO_MAX); 542 icsk->icsk_rto = inet_csk_rto_backoff(icsk, TCP_RTO_MAX);
543 543
544 skb = tcp_rtx_queue_head(sk); 544 skb = tcp_rtx_queue_head(sk);
545 BUG_ON(!skb);
546 545
547 tcp_mstamp_refresh(tp); 546 tcp_mstamp_refresh(tp);
548 delta_us = (u32)(tp->tcp_mstamp - tcp_skb_timestamp_us(skb)); 547 delta_us = (u32)(tp->tcp_mstamp - tcp_skb_timestamp_us(skb));