sctp: copy the optval from user space in sctp_setsockopt
authorChristoph Hellwig <hch@lst.de>
Sun, 19 Jul 2020 07:21:38 +0000 (09:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2020 01:26:41 +0000 (18:26 -0700)
commitca84bd058daefef1d184dd0a7b6b43c67339e72c
tree6ca326ad931708cfaaf757987fc5dc87fc6c2918
parent9aa0dfe1fc9920ad2224b53f9be748c030f0a12e
sctp: copy the optval from user space in sctp_setsockopt

Prepare for for moving the copy_from_user from the individual sockopts
to the main setsockopt helper.  As of this commit the kopt variable
is not used yet, but the following commits will start using it.

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