summaryrefslogtreecommitdiffstats
path: root/drivers/hid/Makefile
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>2012-12-05 15:02:56 +0100
committerJiri Kosina <jkosina@suse.cz>2012-12-06 10:58:42 +0100
commite5b50fe7bea43d0658773c89ba410ecc56867ee6 (patch)
tree8e52cc3e9a269224ad1a233c07a751adcf64b3b9 /drivers/hid/Makefile
parent8a1bbb5319384dab6568ac2ce30d19b922413bec (diff)
downloadop-kernel-dev-e5b50fe7bea43d0658773c89ba410ecc56867ee6.zip
op-kernel-dev-e5b50fe7bea43d0658773c89ba410ecc56867ee6.tar.gz
HID: i2c-hid: fix i2c_hid_get_raw_report count mismatches
The previous memcpy implementation relied on the size advertized by the device. There were no guarantees that buf was big enough. Some gymnastic is also required with the +2/-2 to take into account the first 2 bytes of the returned buffer where the total returned length is supplied by the device. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud