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
@ -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…
x
Reference in New Issue
Block a user