From: Peter Wu Date: Tue, 16 Dec 2014 15:55:22 +0000 (+0100) Subject: HID: logitech-hidpp: check WTP report length X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~305^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3f6569a560aa68c9c50cae0e1bc401f7ee699f;p=pandora-kernel.git HID: logitech-hidpp: check WTP report length Malicious USB devices can send bogus reports smaller than the expected buffer size. Ensure that the length for WTP reports is valid to avoid reading out of bounds. Signed-off-by: Peter Wu Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed