aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_yeah.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_yeah.c')
-rw-r--r--net/ipv4/tcp_yeah.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_yeah.c b/net/ipv4/tcp_yeah.c
index 17d35662930d..3e6a472e6b88 100644
--- a/net/ipv4/tcp_yeah.c
+++ b/net/ipv4/tcp_yeah.c
@@ -219,7 +219,7 @@ static u32 tcp_yeah_ssthresh(struct sock *sk)
219 yeah->fast_count = 0; 219 yeah->fast_count = 0;
220 yeah->reno_count = max(yeah->reno_count>>1, 2U); 220 yeah->reno_count = max(yeah->reno_count>>1, 2U);
221 221
222 return tp->snd_cwnd - reduction; 222 return max_t(int, tp->snd_cwnd - reduction, 2);
223} 223}
224 224
225static struct tcp_congestion_ops tcp_yeah __read_mostly = { 225static struct tcp_congestion_ops tcp_yeah __read_mostly = {