summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Grimm <jgrimm@touki.austin.ibm.com>2003-05-04 23:21:58 -0500
committerJon Grimm <jgrimm@touki.austin.ibm.com>2003-05-04 23:21:58 -0500
commit0235083461273c277b335eea6ae75fa40507ade8 (patch)
tree0ca255d7388bd2167601cdfa7a434bc68d998427
parentd653872934bfd8522431e9d852d0b8b9931e54af (diff)
parent809fd1fae34b5ac460f0d694c1b68ad8f995dd62 (diff)
Merge http://linux-lksctp.bkbits.net/lksctp-2.5.work
into touki.austin.ibm.com:/home/jgrimm/bk/lksctp-2.5.work
-rw-r--r--net/sctp/socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index bc605e51c091..06b1267e3b22 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -693,7 +693,7 @@ SCTP_STATIC int sctp_setsockopt_bindx(struct sock* sk,
*
* struct linger {
* int l_onoff; // option on/off
- * int l_linger; // linger time
+ * int l_linger; // linger time
* };
*
* To enable the option, set l_onoff to 1. If the l_linger value is set
@@ -2279,7 +2279,9 @@ static int sctp_getsockopt_peer_addr_params(struct sock *sk, int len,
if (copy_to_user(optval, &params, len))
return -EFAULT;
- *optlen = len;
+
+ if (put_user(len, optlen))
+ return -EFAULT;
return 0;
}