diff options
| author | 2026-05-25 10:15:16 +0300 | |
|---|---|---|
| committer | 2026-05-28 15:23:40 +0200 | |
| commit | 8a122b5e72cc0043705f0d524bcd15f0c0b3ec15 (patch) | |
| tree | 648a44d6abc1142c1afdc427b779dd4358a88900 /include/linux/bcma/ssh:/git@git.zx2c4.com/git: | |
| parent | gpio: shared: fix lockdep false positive by removing unneeded lock (diff) | |
gpio: virtuser: Fix uninitialized data bug in gpio_virtuser_direction_do_write()
If *ppos is non-zero (user-space write split over multiple calls to
write()) 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 and return -EINVAL at the start of the function.
Fixes: 91581c4b3f29 ("gpio: virtuser: new virtual testing driver for the GPIO API")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/ahP3BJWWy-m_qI0X@stanley.mountain
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
