1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00

Look out for geoms without softc.

Reported by:	tegge
This commit is contained in:
Pawel Jakub Dawidek 2004-10-06 14:15:47 +00:00
parent de97eeddd3
commit 18d2addc23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136191

View File

@ -2699,6 +2699,8 @@ g_mirror_can_go(void)
g_topology_lock();
LIST_FOREACH(gp, &g_mirror_class.geom, geom) {
sc = gp->softc;
if (sc == NULL)
continue;
pp = sc->sc_provider;
if (pp == NULL || pp->error != 0) {
can_go = 0;