diff options
| author | Tetsuo Handa <[email protected]> | 2022-11-07 18:21:40 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2022-11-07 18:28:58 +0000 |
| commit | b8ebf250997c5fb253582f42bfe98673801ebebd (patch) | |
| tree | 46101c8341954b318bc7f17700036b866393ec66 /drivers/fpga/fpga-mgr.c | |
| parent | Input: goodix - try resetting the controller when no config is set (diff) | |
| download | kernel-b8ebf250997c5fb253582f42bfe98673801ebebd.tar.gz kernel-b8ebf250997c5fb253582f42bfe98673801ebebd.zip | |
Input: iforce - invert valid length check when fetching device IDs
syzbot is reporting uninitialized value at iforce_init_device() [1], for
commit 6ac0aec6b0a6 ("Input: iforce - allow callers supply data buffer
when fetching device IDs") is checking that valid length is shorter than
bytes to read. Since iforce_get_id_packet() stores valid length when
returning 0, the caller needs to check that valid length is longer than or
equals to bytes to read.
Reported-by: syzbot <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
Fixes: 6ac0aec6b0a6 ("Input: iforce - allow callers supply data buffer when fetching device IDs")
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
