diff options
author | Dave Jones <davej@redhat.com> | 2013-09-05 13:43:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-13 16:08:28 -0700 |
commit | a4ae4c6176a7c878018adf470a47c1fae9090978 (patch) | |
tree | d4b8db368fbd7ec56cfb7a9f1c0f274c14493b9d | |
parent | a505becfe50ff2e1ba34e197f51eb18eb8e9dfbd (diff) | |
download | linux-stable-a4ae4c6176a7c878018adf470a47c1fae9090978.tar.gz linux-stable-a4ae4c6176a7c878018adf470a47c1fae9090978.tar.bz2 linux-stable-a4ae4c6176a7c878018adf470a47c1fae9090978.zip |
tcp: Add missing braces to do_tcp_setsockopt
[ Upstream commit e2e5c4c07caf810d7849658dca42f598b3938e21 ]
Signed-off-by: Dave Jones <davej@fedoraproject.org>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/ipv4/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 2005561861ad..2b1b57f213b2 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -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: |