Skip to content
Commit a97b693c authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

uaccess: fix nios2 and microblaze get_user_8()



These two architectures implement 8-byte get_user() through
a memcpy() into a four-byte variable, which won't fit.

Use a temporary 64-bit variable instead here, and use a double
cast the way that risc-v and openrisc do to avoid compile-time
warnings.

Fixes: 6a090e97 ("arch/microblaze: support get_user() of size 8 bytes")
Fixes: 5ccc6af5 ("nios2: Memory management")
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarDinh Nguyen <dinguyen@kernel.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 222ca305
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment