Jiri Kosina 51217e6969 HID: logitech: fix bounds checking on LED report size
The check on report size for REPORT_TYPE_LEDS in logi_dj_ll_raw_request()
is wrong; the current check doesn't make any sense -- the report allocated
by HID core in hid_hw_raw_request() can be much larger than
DJREPORT_SHORT_LENGTH, and currently logi_dj_ll_raw_request() doesn't
handle this properly at all.

Fix the check by actually trimming down the report size properly if it is
too large.

Cc: stable@vger.kernel.org
Reported-by: Ben Hawkes <hawkes@google.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2014-08-21 10:38:13 -05:00
..
2014-08-06 20:10:32 -07:00
2014-07-23 10:18:07 -07:00
2014-07-23 00:51:30 +02:00
2014-08-06 20:07:24 -07:00
2014-07-23 17:42:37 -07:00
2014-08-06 20:06:14 -07:00
2014-08-05 21:16:46 -07:00
2014-08-04 18:36:12 -07:00
2014-08-06 20:07:24 -07:00
2014-07-25 18:00:23 -07:00
2014-07-30 00:23:09 +02:00
2014-08-06 20:10:32 -07:00
2014-08-06 20:10:32 -07:00
2014-08-05 16:18:13 -07:00
2014-08-06 20:10:32 -07:00
2014-08-06 20:10:32 -07:00
2014-08-06 20:10:32 -07:00
2014-08-04 18:34:04 -07:00