PERFORCE change 145270 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Jul 15 07:24:42 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=145270
Change 145270 by hselasky at hselasky_laptop001 on 2008/07/15 07:23:44
Fix a Giant assertion.
Affected files ...
.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_process.c#4 edit
Differences ...
==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_process.c#4 (text+ko) ====
@@ -371,8 +371,9 @@
/* not initialised */
return;
}
- mtx_assert(up->up_mtx, MA_NOTOWNED);
-
+ if (up->up_mtx != &Giant) {
+ mtx_assert(up->up_mtx, MA_NOTOWNED);
+ }
mtx_lock(up->up_mtx);
/* Set the gone flag */
More information about the p4-projects
mailing list