Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d743b7e authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller
Browse files

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: default avatarWei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0b796750
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}

/*