Date: Wed, 3 May 2023 00:30:03 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 6ddbd237cc80 - stable/13 - atp: Fix mismatch in array bounds. Message-ID: <202305030030.3430U3sc074677@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305030030.3430U3sc074677>