lkml.org 
[lkml]   [2023]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] riscv: uaccess: fix type of 0 variable on error in get_user()
Date
From
On Thu, 29 Dec 2022 17:05:45 +0000, Ben Dooks wrote:
> 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
>
>
> [...]

Applied, thanks!

[1/1] riscv: uaccess: fix type of 0 variable on error in get_user()
https://git.kernel.org/palmer/c/b9b916aee671

Best regards,
--
Palmer Dabbelt <palmer@rivosinc.com>

\
 
 \ /
  Last update: 2023-03-26 23:29    [W:0.051 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site