sctp: pass a kernel pointer to sctp_setsockopt_auth_key
authorChristoph Hellwig <hch@lst.de>
Sun, 19 Jul 2020 07:22:04 +0000 (09:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 01:26:42 +0000 (18:26 -0700)
commit534d13d07e771d090d61cd98f96b2cbf29765cef
treeafb31f3579c35593dc3cd72b4f0535869598babb
parent89fae01eef8b1572c71d2cfcc3307c1f1e97b778
sctp: pass a kernel pointer to sctp_setsockopt_auth_key

Use the kernel pointer that sctp_setsockopt has available instead of
directly handling the user pointer.  Adapt sctp_setsockopt to use a
kzfree for this case.

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