PERFORCE change 140296 for review

Hans Petter Selasky hselasky at FreeBSD.org
Sun Apr 20 15:02:07 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=140296

Change 140296 by hselasky at hselasky_laptop001 on 2008/04/20 15:01:31

	
	Need to lock "sc->sc_mtx" before calling "usbd_transfer_start()".

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/ulpt.c#43 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/ulpt.c#43 (text+ko) ====

@@ -636,7 +636,9 @@
 	}
 	/* start reading of status */
 
+	mtx_lock(&(sc->sc_mtx));
 	usbd_transfer_start(sc->sc_xfer[2]);
+	mtx_unlock(&(sc->sc_mtx));
 
 	return (0);
 


More information about the p4-projects mailing list