diff options
author | 2023-01-11 18:12:16 +0000 | |
---|---|---|
committer | 2023-01-18 16:34:35 +0100 | |
commit | 3782c0d6edf658b71354a64d60aa7a296188fc90 (patch) | |
tree | 1e75cc5e855e4f234f4c9d5b93e6f24cdde00c4d /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | HID: playstation: sanity check DualSense calibration data. (diff) | |
download | linux-rng-3782c0d6edf658b71354a64d60aa7a296188fc90.tar.xz linux-rng-3782c0d6edf658b71354a64d60aa7a296188fc90.zip |
HID: betop: check shape of output reports
betopff_init() only checks the total sum of the report counts for each
report field to be at least 4, but hid_betopff_play() expects 4 report
fields.
A device advertising an output report with one field and 4 report counts
would pass the check but crash the kernel with a NULL pointer dereference
in hid_betopff_play().
Fixes: 52cd7785f3cd ("HID: betop: add drivers/hid/hid-betopff.c")
Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions