diff options
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 53de1424c13c..bab7f0493098 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -3009,8 +3009,7 @@ void tcp_rearm_rto(struct sock *sk) | |||
3009 | /* delta_us may not be positive if the socket is locked | 3009 | /* delta_us may not be positive if the socket is locked |
3010 | * when the retrans timer fires and is rescheduled. | 3010 | * when the retrans timer fires and is rescheduled. |
3011 | */ | 3011 | */ |
3012 | if (delta_us > 0) | 3012 | rto = usecs_to_jiffies(max_t(int, delta_us, 1)); |
3013 | rto = usecs_to_jiffies(delta_us); | ||
3014 | } | 3013 | } |
3015 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, rto, | 3014 | inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS, rto, |
3016 | TCP_RTO_MAX); | 3015 | TCP_RTO_MAX); |