diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/geom/geom_event.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index 42f21fc..c8bb15d 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -118,6 +118,11 @@ g_orphan_register(struct g_provider *pp) cp->geom->orphan(cp); cp = cp2; } + cp = LIST_FIRST(&pp->consumers); + if (cp != NULL) + return; + if (pp->geom->flags & G_GEOM_WITHER) + g_destroy_provider(pp); } static void |