mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Fix typo in cyapa out of bounds check.
PR: 217783 Submitted by: razmyslov@viva64.com MFC after: 1 week
This commit is contained in:
parent
d683d1a377
commit
9c52035814
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322253
|
@ -1455,7 +1455,7 @@ cyapa_raw_input(struct cyapa_softc *sc, struct cyapa_regs *regs, int freq)
|
|||
sc->delta_x = sc->cap_resx;
|
||||
if (sc->delta_x < -sc->cap_resx)
|
||||
sc->delta_x = -sc->cap_resx;
|
||||
if (sc->delta_y > sc->cap_resx)
|
||||
if (sc->delta_y > sc->cap_resy)
|
||||
sc->delta_y = sc->cap_resy;
|
||||
if (sc->delta_y < -sc->cap_resy)
|
||||
sc->delta_y = -sc->cap_resy;
|
||||
|
|
Loading…
Reference in a new issue