Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7c1277fc authored by Colin Ian King's avatar Colin Ian King Committed by Kishor Krishna Bhat
Browse files

UPSTREAM: HID: playstation: Fix array size comparison (off-by-one)



The comparison of value with the array size ps_gamepad_hat_mapping
appears to be off-by-one. Fix this by using the >= rather than > for the
size comparison.

Bug: 167947264
CRs-fixed: 2971837
Change-Id: I24f4c7f8d48ab8ff1d117d33c7914b8d2e4292f8
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarFarid Chahla <farid.chahla@sony.com>
Signed-off-by: default avatarSiarhei Vishniakou <svv@google.com>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git


Git-commit: 50ab1ffd7c41c5c7759b62fb42d3006b751bb12b
Signed-off-by: default avatarKishor Krishna Bhat <kishkris@codeaurora.org>
parent f0e3e17c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment