From: Vladislav Yasevich <vladislav.yasevich@hp.com>
To: Wei Yongjun <yjwei@cn.fujitsu.com>
Cc: David Miller <davem@davemloft.net>,
linux-sctp@vger.kernel.org,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH] sctp: fix the return value of getting the sctp partial
Date: Wed, 15 Dec 2010 15:53:14 +0000 [thread overview]
Message-ID: <4D08E46A.5010703@hp.com> (raw)
In-Reply-To: <4D0823A1.6080307@cn.fujitsu.com>
On 12/14/2010 09:10 PM, Wei Yongjun wrote:
> Get the sctp partial delivery point using SCTP_PARTIAL_DELIVERY_POINT
> socket option should return 0 if success, not -ENOTSUPP.
>
Ack.
-vlad
> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
> ---
> 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 1bc5203..8628e8e 100644
> --- a/net/sctp/socket.c
> +++ b/net/sctp/socket.c
> @@ -5050,7 +5050,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;
> }
>
> /*
WARNING: multiple messages have this Message-ID (diff)
From: Vladislav Yasevich <vladislav.yasevich@hp.com>
To: Wei Yongjun <yjwei@cn.fujitsu.com>
Cc: David Miller <davem@davemloft.net>,
linux-sctp@vger.kernel.org,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: Re: [PATCH] sctp: fix the return value of getting the sctp partial delivery point
Date: Wed, 15 Dec 2010 10:53:14 -0500 [thread overview]
Message-ID: <4D08E46A.5010703@hp.com> (raw)
In-Reply-To: <4D0823A1.6080307@cn.fujitsu.com>
On 12/14/2010 09:10 PM, Wei Yongjun wrote:
> Get the sctp partial delivery point using SCTP_PARTIAL_DELIVERY_POINT
> socket option should return 0 if success, not -ENOTSUPP.
>
Ack.
-vlad
> Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
> ---
> 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 1bc5203..8628e8e 100644
> --- a/net/sctp/socket.c
> +++ b/net/sctp/socket.c
> @@ -5050,7 +5050,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;
> }
>
> /*
next prev parent reply other threads:[~2010-12-15 15:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-15 2:10 [PATCH] sctp: fix the return value of getting the sctp partial delivery Wei Yongjun
2010-12-15 2:10 ` [PATCH] sctp: fix the return value of getting the sctp partial delivery point Wei Yongjun
2010-12-15 15:53 ` Vladislav Yasevich [this message]
2010-12-15 15:53 ` Vladislav Yasevich
2010-12-16 22:49 ` [PATCH] sctp: fix the return value of getting the sctp partial David Miller
2010-12-16 22:49 ` [PATCH] sctp: fix the return value of getting the sctp partial delivery point David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D08E46A.5010703@hp.com \
--to=vladislav.yasevich@hp.com \
--cc=davem@davemloft.net \
--cc=linux-sctp@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yjwei@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.