sctp: refactor sctp_setsockopt_bindx
authorChristoph Hellwig <hch@lst.de>
Fri, 29 May 2020 12:09:41 +0000 (14:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2020 20:10:39 +0000 (13:10 -0700)
commit05bfd3661448a46db3a258b316160d34cf0a1317
treede952b229b9996e24f0b66b47fb67a3ea290dd61
parent40ef92c6ec09bd8aaffccfa41a715d1df5625f95
sctp: refactor sctp_setsockopt_bindx

Split out a sctp_setsockopt_bindx_kernel that takes a kernel pointer
to the sockaddr and make sctp_setsockopt_bindx a small wrapper around
it.  This prepares for adding a new bind_add proto op.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c