From: Peter Wu Date: Tue, 16 Dec 2014 15:55:21 +0000 (+0100) Subject: HID: logitech-dj: check report length X-Git-Tag: fixes-v4.0-rc1~321^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f254ae938ea479739572790a4e9b0ca86d16249f;p=pandora-kernel.git HID: logitech-dj: check report length Malicious USB devices can send bogus reports smaller than the expected buffer size. Ensure that the length 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