Yet another potential dereference of a dead provider.

Sponsored by:   Panasas
MFC after:	1 week
This commit is contained in:
Matt Jacob 2010-05-14 21:27:39 +00:00
parent 793f71bf2e
commit 87e7f7be89

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