From: Wei Yongjun Date: Tue, 14 Dec 2010 16:10:41 +0000 (+0000) Subject: sctp: fix the return value of getting the sctp partial delivery point X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7d743b7e952261f4d9ee091100b6403f3ce8a2af;p=linux-beck.git 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 Acked-by: Vlad Yasevich Signed-off-by: David S. Miller --- 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; } /*