HID: check empty report_list in bigben_probe()
Add a check for empty report_list in bigben_probe(). The missing check causes a type confusion when issuing a list_entry() on an empty report_list. The problem is caused by the assumption that the device must have valid report_list. While this will be true for all normal HID devices, a suitably malicious device can violate the assumption. Fixes: 256a90ed ("HID: hid-bigbenff: driver for BigBen Interactive PS3OFMINIPAD gamepad") Signed-off-by:Pietro Borrello <borrello@diag.uniroma1.it> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
Loading
-
mentioned in commit 1e9ca064
-
mentioned in commit 33991bbf
-
mentioned in commit 6bc514f9
-
mentioned in commit 4e0649a3
-
mentioned in commit 03f1a848
-
mentioned in commit 5efb4341
-
mentioned in commit c50d4fa6
-
mentioned in commit 349b69a6
-
mentioned in commit df22efef
-
mentioned in commit fee6afa9
-
mentioned in commit 1bba06f3
-
mentioned in commit 2c7af1c5
-
mentioned in commit 4dcf5535
-
mentioned in commit 68c0eb4f
-
mentioned in commit 70c84a45
-
mentioned in commit e16e85b5
-
mentioned in commit 185ae0fe
-
mentioned in commit 34fad1c2
-
mentioned in commit 90fd01d1
-
mentioned in commit 3ede8b24
-
mentioned in commit 1fd3cdb1
Please sign in to comment