]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17d8123a7852dc6addf90518b48eba6c9a75a4e3
tree5ef0449bc7673c99a2134d8bba8e4f1dd4c79549
parent8335820abf4f0de8c71c9aa4c139cc8aae1260d4
sctp: Add validity check for SCTP_PARTIAL_DELIVERY_POINT socket option

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>
net/sctp/socket.c