svn commit: r280529 - stable/10/sys/dev/usb/input
Hans Petter Selasky
hselasky at FreeBSD.org
Wed Mar 25 10:35:55 UTC 2015
Author: hselasky
Date: Wed Mar 25 10:35:54 2015
New Revision: 280529
URL: https://svnweb.freebsd.org/changeset/base/280529
Log:
MFC r279854:
Lock softc before clearing bits.
Modified:
stable/10/sys/dev/usb/input/uhid.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/usb/input/uhid.c
==============================================================================
--- stable/10/sys/dev/usb/input/uhid.c Wed Mar 25 10:35:19 2015 (r280528)
+++ stable/10/sys/dev/usb/input/uhid.c Wed Mar 25 10:35:54 2015 (r280529)
@@ -518,7 +518,9 @@ uhid_open(struct usb_fifo *fifo, int ffl
*/
if (fflags & FREAD) {
/* reset flags */
+ mtx_lock(&sc->sc_mtx);
sc->sc_flags &= ~UHID_FLAG_IMMED;
+ mtx_unlock(&sc->sc_mtx);
if (usb_fifo_alloc_buffer(fifo,
sc->sc_isize + 1, UHID_FRAME_NUM)) {
More information about the svn-src-stable-10
mailing list