Date: Tue, 17 Feb 2009 21:35:31 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 157868 for review Message-ID: <200902172135.n1HLZVMY019154@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=157868 Change 157868 by hselasky@hselasky_laptop001 on 2009/02/17 21:34:44 USB INPUT: Correct my Microsoft UMS patch. Affected files ... .. //depot/projects/usb/src/sys/dev/usb2/input/ums2.c#16 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb2/input/ums2.c#16 (text+ko) ==== @@ -511,7 +511,8 @@ * positions. Correct this: */ isizebits = isize * 8; - if (isizebits <= 0) { + if ((sc->sc_iid != 0) && (isizebits > 8)) { + isizebits -= 8; /* remove size of report ID */ sc->sc_loc_w.pos %= isizebits; sc->sc_loc_x.pos %= isizebits; sc->sc_loc_y.pos %= isizebits;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902172135.n1HLZVMY019154>