]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit8510b937ae1e23583abdeb828cad5c518295c61d
tree5ef0449bc7673c99a2134d8bba8e4f1dd4c79549
parent9fcb95a105758b81ef0131cd18e2db5149f13e95
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