Commit a4ae4c61 authored by Dave Jones's avatar Dave Jones Committed by Greg Kroah-Hartman

tcp: Add missing braces to do_tcp_setsockopt

[ Upstream commit e2e5c4c0 ]
Signed-off-by: default avatarDave Jones <davej@fedoraproject.org>
Acked-by: default avatarNeal Cardwell <ncardwell@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a505becf
......@@ -2447,10 +2447,11 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
case TCP_THIN_DUPACK:
if (val < 0 || val > 1)
err = -EINVAL;
else
else {
tp->thin_dupack = val;
if (tp->thin_dupack)
tcp_disable_early_retrans(tp);
}
break;
case TCP_REPAIR:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment