HID: fix a couple of off-by-ones
authorJiri Kosina <jkosina@suse.cz>
Thu, 21 Aug 2014 14:57:48 +0000 (09:57 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 21 Aug 2014 15:43:28 +0000 (10:43 -0500)
commit4ab25786c87eb20857bbb715c3ae34ec8fd6a214
treea1f0b37bd3f77e369398df733e76c222f0a8f86d
parentad3e14d7c5268c2e24477c6ef54bbdf88add5d36
HID: fix a couple of off-by-ones

There are a few very theoretical off-by-one bugs in report descriptor size
checking when performing a pre-parsing fixup. Fix those.

Cc: stable@vger.kernel.org
Reported-by: Ben Hawkes <hawkes@google.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-cherry.c
drivers/hid/hid-kye.c
drivers/hid/hid-lg.c
drivers/hid/hid-monterey.c
drivers/hid/hid-petalynx.c
drivers/hid/hid-sunplus.c