sctp: use SCTP_FUTURE_ASSOC for SCTP_PR_SUPPORTED sockopt
authorXin Long <lucien.xin@gmail.com>
Mon, 28 Jan 2019 07:08:30 +0000 (15:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 08:44:07 +0000 (00:44 -0800)
commitfb1956050846331358ecd259cc1b632a092d73ff
tree37e7e43de31aafa523b17d17def342ad339a451b
parent8add543e369d67ccd42f7e67d68866b4d606f632
sctp: use SCTP_FUTURE_ASSOC for SCTP_PR_SUPPORTED sockopt

Check with SCTP_FUTURE_ASSOC instead in
sctp_set/getsockopt_pr_supported, it's compatible with 0.

It also adjusts some code to keep a same check form as other functions.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c