summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2010-12-14 17:10:41 +0100
committerDavid S. Miller <davem@davemloft.net>2010-12-16 23:48:44 +0100
commit7d743b7e952261f4d9ee091100b6403f3ce8a2af (patch)
tree9829009c63ccebbf65b4cca63c1eb4e14b8e5fd1
parentnet/veth: Fix packet checksumming (diff)
downloadlinux-7d743b7e952261f4d9ee091100b6403f3ce8a2af.tar.xz
linux-7d743b7e952261f4d9ee091100b6403f3ce8a2af.zip
sctp: fix the return value of getting the sctp partial delivery point
Get the sctp partial delivery point using SCTP_PARTIAL_DELIVERY_POINT socket option should return 0 if success, not -ENOTSUPP. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sctp/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 0b9ee34ad35c..fff0926b1111 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -5053,7 +5053,7 @@ static int sctp_getsockopt_partial_delivery_point(struct sock *sk, int len,
if (copy_to_user(optval, &val, len))
return -EFAULT;
- return -ENOTSUPP;
+ return 0;
}
/*