diff options
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index df90cd1ce37f..a339e7ba05a4 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -135,10 +135,9 @@ static bool retransmits_timed_out(struct sock *sk, | |||
135 | if (!inet_csk(sk)->icsk_retransmits) | 135 | if (!inet_csk(sk)->icsk_retransmits) |
136 | return false; | 136 | return false; |
137 | 137 | ||
138 | if (unlikely(!tcp_sk(sk)->retrans_stamp)) | 138 | start_ts = tcp_sk(sk)->retrans_stamp; |
139 | start_ts = TCP_SKB_CB(tcp_write_queue_head(sk))->when; | 139 | if (unlikely(!start_ts)) |
140 | else | 140 | start_ts = tcp_skb_timestamp(tcp_write_queue_head(sk)); |
141 | start_ts = tcp_sk(sk)->retrans_stamp; | ||
142 | 141 | ||
143 | if (likely(timeout == 0)) { | 142 | if (likely(timeout == 0)) { |
144 | linear_backoff_thresh = ilog2(TCP_RTO_MAX/rto_base); | 143 | linear_backoff_thresh = ilog2(TCP_RTO_MAX/rto_base); |