diff options
author | Kees Cook <keescook@chromium.org> | 2013-09-11 21:56:50 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-09-13 15:11:21 +0200 |
commit | 331415ff16a12147d57d5c953f3a961b7ede348b (patch) | |
tree | 79a497ffd03b720215e567c9c9862090fc76d0fa /include/net/genetlink.h | |
parent | Revert "Input: introduce BTN/ABS bits for drums and guitars" (diff) | |
download | linux-331415ff16a12147d57d5c953f3a961b7ede348b.tar.xz linux-331415ff16a12147d57d5c953f3a961b7ede348b.zip |
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 <keescook@chromium.org>
Cc: stable@vger.kernel.org
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/net/genetlink.h')
0 files changed, 0 insertions, 0 deletions