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-12 11:45:26 +0200
commit12b27c445f2fd4a2e2c49136f26be26635cc1c73 (patch)
tree7baa63ad5a1a262335e0e265b1e8df0bc85713b6 /include/linux
parentaafe133906196555c6fa4a1d65977dc3cd2c4349 (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