diff options
author | Anastasia Belova <abelova@astralinux.ru> | 2022-11-11 15:55:11 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-11-15 01:56:52 +0300 |
commit | d180b6496143cd360c5d5f58ae4b9a8229c1f344 (patch) | |
tree | c892b4806ab23ca0f5ff58d1a0c90450056101b6 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 9ad6645a9dce4d0e42daca6ebf32a154401c59d3 (diff) | |
download | linux-d180b6496143cd360c5d5f58ae4b9a8229c1f344.tar.xz |
HID: hid-lg4ff: Add check for empty lbuf
If an empty buf is received, lbuf is also empty. So lbuf is
accessed by index -1.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: f31a2de3fe36 ("HID: hid-lg4ff: Allow switching of Logitech gaming wheels between compatibility modes")
Signed-off-by: Anastasia Belova <abelova@astralinux.ru>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions