Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2006 06:42:35 GMT
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 111923 for review
Message-ID:  <200612190642.kBJ6gZRi045029@repoman.freebsd.org>

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

Change 111923 by mjacob@mjexp on 2006/12/19 06:42:23

	Don't attempt NULL g_access actions when adding a device.

Affected files ...

.. //depot/projects/mjexp/sys/geom/multipath/g_multipath.c#6 edit

Differences ...

==== //depot/projects/mjexp/sys/geom/multipath/g_multipath.c#6 (text+ko) ====

@@ -280,7 +280,7 @@
 	/*
 	 * Set access permissions on new consumer to match other consumers
 	 */
-	if (nxtcp) {
+	if (nxtcp && (nxtcp->acr + nxtcp->acw +  nxtcp->ace)) {
 		error = g_access(cp, nxtcp->acr, nxtcp->acw, nxtcp->ace);
 		if (error) {
 			printf("GEOM_MULTIPATH: cannot set access in "



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