diff options
author | Marc Zyngier <[email protected]> | 2020-08-29 12:26:01 +0100 |
---|---|---|
committer | Benjamin Tissoires <[email protected]> | 2020-09-01 10:25:49 +0200 |
commit | bce1305c0ece3dc549663605e567655dd701752c (patch) | |
tree | cf38d31f01ec5c2be9e38b39245e2b6bcc908b7c /net/tipc/node.c | |
parent | b7429ea53d6c0936a0f10a5d64164f0aea440143 (diff) |
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: [email protected]
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions