diff options
| author | 2013-09-11 21:56:50 +0200 | |
|---|---|---|
| committer | 2013-09-13 15:11:21 +0200 | |
| commit | 331415ff16a12147d57d5c953f3a961b7ede348b (patch) | |
| tree | 79a497ffd03b720215e567c9c9862090fc76d0fa /lib/mpi/generic_mpih-rshift.c | |
| parent | Revert "Input: introduce BTN/ABS bits for drums and guitars" (diff) | |
| download | wireguard-linux-331415ff16a12147d57d5c953f3a961b7ede348b.tar.xz wireguard-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 'lib/mpi/generic_mpih-rshift.c')
0 files changed, 0 insertions, 0 deletions
