aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index bb9d91a7662f..4664733f139c 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -444,7 +444,7 @@ int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
444 break; 444 break;
445 default: 445 default:
446 return -ENOIOCTLCMD; 446 return -ENOIOCTLCMD;
447 }; 447 }
448 448
449 return put_user(answ, (int __user *)arg); 449 return put_user(answ, (int __user *)arg);
450} 450}
@@ -1954,7 +1954,8 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
1954 default: 1954 default:
1955 err = -ENOPROTOOPT; 1955 err = -ENOPROTOOPT;
1956 break; 1956 break;
1957 }; 1957 }
1958
1958 release_sock(sk); 1959 release_sock(sk);
1959 return err; 1960 return err;
1960} 1961}
@@ -2124,7 +2125,7 @@ static int do_tcp_getsockopt(struct sock *sk, int level,
2124 return 0; 2125 return 0;
2125 default: 2126 default:
2126 return -ENOPROTOOPT; 2127 return -ENOPROTOOPT;
2127 }; 2128 }
2128 2129
2129 if (put_user(len, optlen)) 2130 if (put_user(len, optlen))
2130 return -EFAULT; 2131 return -EFAULT;