HID: core: check parameters when sending/receiving data from the device
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 10 Feb 2014 17:58:59 +0000 (12:58 -0500)
committerJiri Kosina <jkosina@suse.cz>
Mon, 17 Feb 2014 13:58:59 +0000 (14:58 +0100)
commit5318251744b2c8a288f91f4e53ed69f2a01d6412
tree48fe1594feac12afa0832b271460ad58b0596afc
parent7e0bc880fce51ba3bd9128b8df9dc59567c5f73a
HID: core: check parameters when sending/receiving data from the device

It is better to check them soon enough before triggering any kernel panic.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c
include/linux/hid.h