Files
android_kernel_xiaomi_sm8450/arch/riscv/include/asm
Ben Dooks bc847857fb 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-14 10:16:49 +01:00
..
2017-09-26 15:26:46 -07:00
2019-11-17 15:17:39 -08:00
2020-03-31 11:28:30 -07:00
2020-10-02 14:31:28 -07:00
2020-10-02 14:31:03 -07:00
2021-11-02 19:48:25 +01:00
2020-05-18 11:38:10 -07:00
2020-10-02 14:31:28 -07:00
2022-04-08 14:40:42 +02:00
2020-06-03 20:09:50 -07:00
2021-03-25 09:04:09 +01:00
2020-01-22 13:09:58 -08:00
2019-11-17 15:17:39 -08:00