sctp: pass a kernel pointer to sctp_setsockopt_peer_addr_params
authorChristoph Hellwig <hch@lst.de>
Sun, 19 Jul 2020 07:21:44 +0000 (09:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 01:26:41 +0000 (18:26 -0700)
commit9b7b0d1a395d54c12be9f18d1bf7be06aecaa785
tree4fd6b462b8443ca74335147d030566c2f4c5f220
parent0b49a65c77d8a4864e1d524dc51c6a4b8a6e1585
sctp: pass a kernel pointer to sctp_setsockopt_peer_addr_params

Use the kernel pointer that sctp_setsockopt has available instead of
directly handling the user pointer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c