]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32d1a0742193c7c9e3d5faa3b86c5dcc6fe008c4
treea1f0b37bd3f77e369398df733e76c222f0a8f86d
parentf078b8fa60336a3375f5b7bb2e5c4272d23f7146
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