diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2016-06-14 10:55:22 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-15 08:27:48 +0200 |
commit | 5349cdd3b49cea2d57dc05bbf3f313979751fed3 (patch) | |
tree | f6ddf22621816ea20151c4d6be8f91c6f11064a1 /drivers/crypto | |
parent | 9f4a5a1c0cac1e655234984b3f877ae0b7585f00 (diff) |
HID: core: prevent out-of-bound readings
[ Upstream commit 50220dead1650609206efe91f0cc116132d59b3f ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/crypto')
0 files changed, 0 insertions, 0 deletions