diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2010-12-14 16:10:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-16 14:48:44 -0800 |
commit | 7d743b7e952261f4d9ee091100b6403f3ce8a2af (patch) | |
tree | 9829009c63ccebbf65b4cca63c1eb4e14b8e5fd1 /net/sctp/socket.c | |
parent | 0b7967503dc97864f283a3a06fbe23e041876138 (diff) |
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>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 2 |
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; } /* |