Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jul 2008 09:21:18 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 144605 for review
Message-ID:  <200807040921.m649LIeu077135@repoman.freebsd.org>

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

Change 144605 by hselasky@hselasky_laptop001 on 2008/07/04 09:21:14

	
	Fix a witness issue with Giant.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb2/core/usb2_request.c#6 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb2/core/usb2_request.c#6 (text+ko) ====

@@ -289,7 +289,9 @@
 	}
 	if (mtx) {
 		mtx_unlock(mtx);
-		mtx_assert(mtx, MA_NOTOWNED);
+		if (mtx != &Giant) {
+			mtx_assert(mtx, MA_NOTOWNED);
+		}
 	}
 	/*
 	 * Grab the default sx-lock so that serialisation



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