Files
linux/arch/nios2/include/asm
Arnd Bergmann 3fa8114be4 uaccess: fix nios2 and microblaze get_user_8()
[ Upstream commit a97b693c37 ]

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: 6a090e9797 ("arch/microblaze: support get_user() of size 8 bytes")
Fixes: 5ccc6af5e8 ("nios2: Memory management")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:18 +02:00
..
2018-04-11 10:28:39 -07:00
2014-12-08 12:56:01 +08:00
2019-11-11 21:18:19 +01:00
2014-12-08 12:55:51 +08:00
2021-07-01 11:06:03 -07:00
2018-10-31 08:54:12 -07:00
2015-03-12 13:35:06 +08:00
2014-12-08 12:56:00 +08:00
2014-12-08 12:55:53 +08:00
2019-04-03 10:32:54 +02:00
2014-12-08 12:55:50 +08:00