Files
linux/drivers/hid
Benjamin Tissoires 4774accdcc UPSTREAM: HID: core: prevent out-of-bound readings
(cherry picked from commit 50220dead1)

Plugging a Logitech DJ receiver with KASAN activated raises a bunch of
out-of-bound readings.

The fields are allocated up to MAX_USAGE, meaning that potentially, we do
not have enough fields to fit the incoming values.
Add checks and silence KASAN.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Change-Id: Iaf25e882a6696884439d7091b5fbb0b350d893d3
Bug: 30951261
2016-09-14 14:44:29 +05:30
..
2015-10-21 13:15:53 +02:00
2013-01-03 10:27:31 +01:00
2014-08-21 10:43:28 -05:00
2015-10-21 13:15:53 +02:00
2016-07-27 09:47:32 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-04-24 16:32:27 +02:00
2013-01-03 10:27:31 +01:00
2015-11-06 21:18:06 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2015-10-21 13:15:53 +02:00
2014-06-27 00:33:44 +02:00
2013-01-03 10:27:31 +01:00
2015-05-07 10:47:53 +02:00
2014-08-21 10:43:28 -05:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2014-10-01 20:58:46 +02:00