]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: hid-cypress: validate length of report
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 14:33:36 +0000 (15:33 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 26 Jan 2017 16:40:29 +0000 (17:40 +0100)
commit5bc00ccfce098d09c1aa097806660d9709fbe956
treedc26a0b1b39346572168e2d2a9fe0d3b33bbd4f5
parenteaefead383021b1de5802449530640c9064a8222
HID: hid-cypress: validate length of report

commit 1ebb71143758f45dc0fa76e2f48429e13b16d110 upstream.

Make sure we have enough of a report structure to validate before
looking at it.

Reported-by: Benoit Camredon <benoit.camredon@airbus.com>
Tested-by: Benoit Camredon <benoit.camredon@airbus.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-cypress.c