summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-08-29 12:26:01 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-05 11:22:49 +0200
commit667514df10a08e4a65cb88f5fd5ffeccd027c4af (patch)
tree35fdab5a90a72e55c9f8bb3c9ed1946a945152df /include/linux
parent933cf1c2c075f44c7b6837b6201e0db2d488835a (diff)
HID: core: Correctly handle ReportSize being zero
commit bce1305c0ece3dc549663605e567655dd701752c upstream. It appears that a ReportSize value of zero is legal, even if a bit non-sensical. Most of the HID code seems to handle that gracefully, except when computing the total size in bytes. When fed as input to memset, this leads to some funky outcomes. Detect the corner case and correctly compute the size. Cc: stable@vger.kernel.org Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions