sctp: Add validity check for SCTP_PARTIAL_DELIVERY_POINT socket option
authorWei Yongjun <yjwei@cn.fujitsu.com>
Fri, 26 Dec 2008 00:59:03 +0000 (16:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 00:59:03 +0000 (16:59 -0800)
The latest ietf socket extensions API draft said:

  8.1.21.  Set or Get the SCTP Partial Delivery Point

    Note also that the call will fail if the user attempts to set
    this value larger than the socket receive buffer size.

This patch add this validity check for SCTP_PARTIAL_DELIVERY_POINT
socket option.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found