[TCP]: 'dst' can be NULL in tcp_rto_min()

Reported by Rick Jones.

Signed-off-by: David S. Miller <davem@davemloft.net>

+1 -1
+1 -1
net/ipv4/tcp_input.c
··· 560 struct dst_entry *dst = __sk_dst_get(sk); 561 u32 rto_min = TCP_RTO_MIN; 562 563 - if (dst_metric_locked(dst, RTAX_RTO_MIN)) 564 rto_min = dst->metrics[RTAX_RTO_MIN-1]; 565 return rto_min; 566 }
··· 560 struct dst_entry *dst = __sk_dst_get(sk); 561 u32 rto_min = TCP_RTO_MIN; 562 563 + if (dst && dst_metric_locked(dst, RTAX_RTO_MIN)) 564 rto_min = dst->metrics[RTAX_RTO_MIN-1]; 565 return rto_min; 566 }