svn commit: r208101 - head/sys/geom/multipath
Matt Jacob
mjacob at FreeBSD.org
Fri May 14 21:27:40 UTC 2010
Author: mjacob
Date: Fri May 14 21:27:39 2010
New Revision: 208101
URL: http://svn.freebsd.org/changeset/base/208101
Log:
Yet another potential dereference of a dead provider.
Sponsored by: Panasas
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 21:11:58 2010 (r208100)
+++ head/sys/geom/multipath/g_multipath.c Fri May 14 21:27:39 2010 (r208101)
@@ -197,7 +197,7 @@ g_multipath_done_error(struct bio *bp)
break;
}
}
- if (sc->cp_active == NULL) {
+ if (sc->cp_active == NULL || sc->cp_active->provider == NULL) {
printf("GEOM_MULTIPATH: out of providers for %s\n",
sc->sc_name);
g_topology_unlock();
More information about the svn-src-all
mailing list