]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit650455bb0a521c4d0d682d4fcf9b82dc6cecbd13
treeafb31f3579c35593dc3cd72b4f0535869598babb
parent4b7e7810c6ab499b70971a1631f505a5f3200873
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