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>
Loading
-
mentioned in commit fc636225
-
mentioned in commit 806614a5
-
mentioned in commit ed9f41f4
-
mentioned in commit a5ef9814
-
mentioned in commit 3f3160d7
-
mentioned in commit c73a33eb
-
mentioned in commit 3912420a
-
mentioned in commit 2d4d7c58
-
mentioned in commit 99146e4f
-
mentioned in commit 2298f17b
-
mentioned in commit 594f1130
-
mentioned in commit 8255e79b
Please sign in to comment