PERFORCE change 147163 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Aug 11 17:54:02 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=147163
Change 147163 by hselasky at hselasky_laptop001 on 2008/08/11 17:53:11
Add missing locking of "usb2_mtx". Caught by an mtx_assert() .
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#19 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_transfer.c#19 (text+ko) ====
@@ -2322,6 +2322,7 @@
* If the current USB transfer is completing we need to start the
* next one:
*/
+ mtx_lock(xfer->usb2_mtx);
if (pipe->pipe_q.curr == xfer) {
usb2_command_wrapper(&(pipe->pipe_q), NULL);
@@ -2333,6 +2334,7 @@
xfer->pipe->is_synced = 0;
}
}
+ mtx_unlock(xfer->usb2_mtx);
done:
return (0);
}
More information about the p4-projects
mailing list