aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/trace/events/random.h
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2020-08-29 12:26:01 +0100
committerBenjamin Tissoires <benjamin.tissoires@gmail.com>2020-09-01 10:25:49 +0200
commitbce1305c0ece3dc549663605e567655dd701752c (patch)
treecf38d31f01ec5c2be9e38b39245e2b6bcc908b7c /include/trace/events/random.h
parentHID: elan: Fix memleak in elan_input_configured (diff)
downloadwireguard-linux-bce1305c0ece3dc549663605e567655dd701752c.tar.xz
wireguard-linux-bce1305c0ece3dc549663605e567655dd701752c.zip
HID: core: Correctly handle ReportSize being zero
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>
Diffstat (limited to 'include/trace/events/random.h')
0 files changed, 0 insertions, 0 deletions