Files
kernel_arpi/arch/riscv/include/asm
Ben Dooks 620a229f57 riscv: uaccess: fix type of 0 variable on error in get_user()
commit b9b916aee6715cd7f3318af6dc360c4729417b94 upstream.

If the get_user(x, ptr) has x as a pointer, then the setting
of (x) = 0 is going to produce the following sparse warning,
so fix this by forcing the type of 'x' when access_ok() fails.

fs/aio.c:2073:21: warning: Using plain integer as NULL pointer

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20221229170545.718264-1-ben-linux@fluff.org
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-12 11:59:18 +01:00
..
2022-12-08 11:28:44 +01:00
2021-01-14 15:09:11 -08:00
2019-11-17 15:17:39 -08:00
2020-03-31 11:28:30 -07:00
2020-10-02 14:31:03 -07:00
2021-03-09 20:46:00 -08:00
2021-10-29 08:54:50 -07:00
2020-05-18 11:38:10 -07:00
2021-05-22 22:05:30 -07:00
2021-06-30 20:55:41 -07:00
2022-04-08 14:24:12 +02:00
2021-05-22 10:19:29 -07:00
2021-01-14 15:09:06 -08:00
2020-06-03 20:09:50 -07:00
2021-07-05 20:53:09 -07:00
2021-01-07 19:00:50 -08:00
2021-03-09 18:18:31 -08:00
2021-10-02 13:42:23 -07:00
2021-01-14 15:09:08 -08:00