summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2010-05-14 21:27:39 +0000
committermjacob <mjacob@FreeBSD.org>2010-05-14 21:27:39 +0000
commit5fcf18695d465efd3a0cde84c5f6c0ea719bb456 (patch)
tree72f4f6d4a8dc90ded73375ceada47a722ec0ee7e
parentc9d1ca826b9b450edf1dc47253441c1272337057 (diff)
downloadFreeBSD-src-5fcf18695d465efd3a0cde84c5f6c0ea719bb456.zip
FreeBSD-src-5fcf18695d465efd3a0cde84c5f6c0ea719bb456.tar.gz
Yet another potential dereference of a dead provider.
Sponsored by: Panasas MFC after: 1 week
-rw-r--r--sys/geom/multipath/g_multipath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 3d1740d..8806b58 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -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();
OpenPOWER on IntegriCloud