Message ID | 1359818075.30177.78.camel@edumazet-glaptop |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 8aca4ee..37760df 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -3506,7 +3506,7 @@ static bool tcp_process_frto(struct sock *sk, int flag) if (!(flag & FLAG_DATA_ACKED) && (tp->frto_counter == 1)) { /* Prevent sending of new data. */ tp->snd_cwnd = min(tp->snd_cwnd, - tcp_packets_in_flight(tp)); + max(tcp_packets_in_flight(tp), 1U)); return true; }