Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jul 2008 07:24:42 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 145270 for review
Message-ID:  <200807150724.m6F7OgdT079908@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=145270

Change 145270 by hselasky@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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807150724.m6F7OgdT079908>