]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8afac125566e7d19a54dd24b909c6c3becaf51f1
treede952b229b9996e24f0b66b47fb67a3ea290dd61
parent0bcb38a9c5d38638aed4257a143e8bdd7a2d9b3f
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