Look out for geoms without softc.
Reported by: tegge
This commit is contained in:
parent
de97eeddd3
commit
18d2addc23
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136191
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user