Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2005 07:29:45 GMT
From:      soc-cjones <soc-cjones@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 81970 for review
Message-ID:  <200508140729.j7E7Tjsd018212@repoman.freebsd.org>

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

Change 81970 by soc-cjones@soc-cjones_ishtar on 2005/08/14 07:29:38

	Fix case where sd isn't part of a plex, and things die on gv_sd_to_plex.

Affected files ...

.. //depot/projects/soc2005/gvinum/src/sys/geom/vinum/geom_vinum_plex.c#2 edit

Differences ...

==== //depot/projects/soc2005/gvinum/src/sys/geom/vinum/geom_vinum_plex.c#2 (text+ko) ====

@@ -734,6 +734,8 @@
 	 * configuration, we don't check the given value (should we?).
 	 * XXX: shouldn't be done here
 	 */
+	if (!p)  /* SD isn't part of a plex; we'll die if we don't exit now. */
+	    return (NULL);
 	gv_sd_to_plex(p, s, 0);
 
 	/* Now check if there's already a geom for this plex. */



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