svn commit: r208082 - head/sys/geom/multipath
Matt Jacob
mjacob at FreeBSD.org
Fri May 14 16:56:19 UTC 2010
Author: mjacob
Date: Fri May 14 16:56:18 2010
New Revision: 208082
URL: http://svn.freebsd.org/changeset/base/208082
Log:
Make sure to check that the active provider pointer points to something before
dereferencing the pointer.
Sponsored by: Pansas
MFC after: 1 week
Modified:
head/sys/geom/multipath/g_multipath.c
Modified: head/sys/geom/multipath/g_multipath.c
==============================================================================
--- head/sys/geom/multipath/g_multipath.c Fri May 14 16:55:13 2010 (r208081)
+++ head/sys/geom/multipath/g_multipath.c Fri May 14 16:56:18 2010 (r208082)
@@ -757,7 +757,7 @@ g_multipath_ctl_getactive(struct gctl_re
return;
}
sc = gp->softc;
- if (sc->cp_active) {
+ if (sc->cp_active && sc->cp_active->provider) {
sbuf_printf(sb, "%s\n", sc->cp_active->provider->name);
} else {
sbuf_printf(sb, "none\n");
More information about the svn-src-head
mailing list