Pietro Borrello 3782c0d6ed 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>
2023-01-18 16:34:35 +01:00
..
2022-12-13 10:54:19 -08:00
2022-12-13 12:44:40 -08:00
2022-10-12 10:23:24 -07:00
2022-12-13 10:43:59 -08:00
2022-12-13 11:59:58 -08:00
2022-12-12 16:39:38 -08:00
2022-12-08 13:03:47 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 12:54:31 -08:00
2022-12-13 11:59:58 -08:00
2022-12-12 13:38:17 -08:00
2022-12-13 13:09:38 -08:00
2022-12-13 11:27:26 -08:00
2022-12-13 13:20:36 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 13:20:36 -08:00
2022-12-13 09:05:19 -08:00
2022-12-07 17:50:44 +01:00
2022-10-09 14:05:15 -07:00
2022-12-12 13:38:17 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 11:59:58 -08:00
2022-12-13 12:32:07 -08:00
2022-12-13 09:05:19 -08:00
2022-12-13 10:43:59 -08:00
2022-12-12 10:17:08 -08:00
2022-12-13 13:13:55 -08:00
2022-12-13 10:43:59 -08:00
2022-12-12 15:19:38 -08:00
2022-12-13 11:36:58 -08:00
2022-12-13 12:49:59 -08:00
2022-12-13 12:49:59 -08:00
2022-12-13 09:05:19 -08:00
2022-12-13 10:54:19 -08:00
2022-12-13 12:54:31 -08:00
2022-12-13 11:59:58 -08:00
2022-12-12 10:17:08 -08:00
2022-12-12 09:01:36 -08:00
2022-12-13 10:43:59 -08:00
2022-10-10 14:02:53 -07:00
2022-12-13 11:59:58 -08:00
2022-12-13 11:59:58 -08:00