summaryrefslogtreecommitdiff
path: root/drivers/hwspinlock/omap_hwspinlock.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2016-01-19 14:34:58 +0300
committerJiri Kosina <jkosina@suse.cz>2016-01-19 16:09:34 +0300
commit50220dead1650609206efe91f0cc116132d59b3f (patch)
tree4310293cab681fe0072c600d32c83ca061c18c01 /drivers/hwspinlock/omap_hwspinlock.c
parent5137b354bc8a5c04edb10d83f8bdb0bf8896fd68 (diff)
downloadlinux-50220dead1650609206efe91f0cc116132d59b3f.tar.xz
HID: core: prevent out-of-bound readings
Plugging a Logitech DJ receiver with KASAN activated raises a bunch of out-of-bound readings. The fields are allocated up to MAX_USAGE, meaning that potentially, we do not have enough fields to fit the incoming values. Add checks and silence KASAN. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hwspinlock/omap_hwspinlock.c')
0 files changed, 0 insertions, 0 deletions