nios2: drop access_ok() check from __put_user()
authorArnd Bergmann <arnd@arndb.de>
Tue, 15 Feb 2022 10:24:27 +0000 (11:24 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 25 Feb 2022 08:36:05 +0000 (09:36 +0100)
commit90997c128049c75a74bd9ebb852b17e359066541
tree370670f5dc9b812850a8e16a0f5546b00e0aa479
parent1830a1d6a5b71a0b1fbc05da2ef6f7ea9f0c59f6
nios2: drop access_ok() check from __put_user()

Unlike other architectures, the nios2 version of __put_user() has an
extra check for access_ok(), preventing it from being used to implement
__put_kernel_nofault().

Split up put_user() along the same lines as __get_user()/get_user()

Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/nios2/include/asm/uaccess.h