git: 6ddbd237cc80 - stable/13 - atp: Fix mismatch in array bounds.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 May 2023 00:30:03 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=6ddbd237cc8055037162ed4a0ef47779ad553b0c
commit 6ddbd237cc8055037162ed4a0ef47779ad553b0c
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-07 20:33:56 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-05-03 00:25:11 +0000
atp: Fix mismatch in array bounds.
Reported by: GCC -Warray-parameter
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D37552
(cherry picked from commit 4eda35b6360762b4a256c33321a917d4b3a5d625)
---
sys/dev/usb/input/atp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/dev/usb/input/atp.c b/sys/dev/usb/input/atp.c
index 8f0c6c36626a..d16e1aae5a23 100644
--- a/sys/dev/usb/input/atp.c
+++ b/sys/dev/usb/input/atp.c
@@ -1635,7 +1635,8 @@ fg_update_strokes(struct atp_softc *sc, fg_pspan *pspans_x,
* Return true if any movement is detected.
*/
static boolean_t
-wsp_update_strokes(struct atp_softc *sc, wsp_finger_t *fingers, u_int n_fingers)
+wsp_update_strokes(struct atp_softc *sc, wsp_finger_t fingers[WSP_MAX_FINGERS],
+ u_int n_fingers)
{
boolean_t movement = false;
atp_stroke_t *strokep_next;