From: Benjamin Tissoires Date: Tue, 19 Jan 2016 11:34:58 +0000 (+0100) Subject: HID: core: prevent out-of-bound readings X-Git-Tag: v3.2.85~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=119e11a50fc0e5218e0a0f2d7d87c0cbf1d54940;p=pandora-kernel.git HID: core: prevent out-of-bound readings commit 50220dead1650609206efe91f0cc116132d59b3f upstream. Plugging a Logitech DJ receiver with KASAN activated raises a bunch of out-of-bound readings. The fields are allocated up to MAX_USAGE, meaning that potentially, we do not have enough fields to fit the incoming values. Add checks and silence KASAN. Signed-off-by: Benjamin Tissoires Signed-off-by: Jiri Kosina Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed