Re: [PATCH] gpio: virtuser: Fix uninitialized data bug in gpio_virtuser_direction_do_write()
From: Bartosz Golaszewski
Date: Tue May 26 2026 - 04:34:54 EST
On Mon, 25 May 2026 10:15:16 +0300, Dan Carpenter wrote:
> If *ppos is non-zero then simple_write_to_buffer() won't initialize the
> start of the buffer. Really, non-zero values for *ppos aren't going to
> work at all. Check for that return -EINVAL at the start of the function.
>
>
I tweaked the commit message a bit for clarity, thanks.
[1/1] gpio: virtuser: Fix uninitialized data bug in gpio_virtuser_direction_do_write()
https://git.kernel.org/brgl/c/39785f2b3e9fb8f3375dde1e3e4c94ff953871af
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>