Yet another potential dereference of a dead provider.

Sponsored by:   Panasas
MFC after:	1 week
This commit is contained in:
mjacob 2010-05-14 21:27:39 +00:00
parent c9d1ca826b
commit 5fcf18695d

View File

@ -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();