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 Kosina <jkosina@suse.cz>
Fri, 6 Jan 2017 15:06:43 +0000 (16:06 +0100)
commit1ebb71143758f45dc0fa76e2f48429e13b16d110
tree807bc3a12427e4334d2c54716759e26ac2c3ebc1
parent08f9572671c8047e7234cbf150869aa3c3d59a97
HID: hid-cypress: validate length of report

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-cypress.c