]> 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)
commite289a57ed016868c7e9e664ca3a44448dba537e8
treede952b229b9996e24f0b66b47fb67a3ea290dd61
parentdfdec05df8724edeb19bca7765aa05dc3a56fead
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