From: Kees Cook Date: Wed, 11 Sep 2013 19:56:50 +0000 (+0200) Subject: HID: provide a helper for validating hid reports X-Git-Tag: v3.12-rc2~25^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=331415ff16a12147d57d5c953f3a961b7ede348b;p=pandora-kernel.git HID: provide a helper for validating hid reports Many drivers need to validate the characteristics of their HID report during initialization to avoid misusing the reports. This adds a common helper to perform validation of the report exisitng, the field existing, and the expected number of values within the field. Signed-off-by: Kees Cook Cc: stable@vger.kernel.org Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed