diff options
| author | Jiri Kosina <[email protected]> | 2014-08-21 09:56:47 -0500 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2014-08-21 10:38:13 -0500 |
| commit | 51217e69697fba92a06e07e16f55c9a52d8e8945 (patch) | |
| tree | 285dfb9a05585d0e7f767c618e1cc8f9e73ce8c6 /tools/lib/api/fd/array.c | |
| parent | 29ff66571d38f01c5a5d3af871401b8a65323422 (diff) | |
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: [email protected]
Reported-by: Ben Hawkes <[email protected]>
Reviewed-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/lib/api/fd/array.c')
0 files changed, 0 insertions, 0 deletions