diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index b88622acde53..4322e1581eed 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -191,7 +191,8 @@ g_do_event(struct g_event *ep) cp, cp->geom->name, cp->geom->spoiled); if (cp->geom->spoiled != NULL) cp->geom->spoiled(cp); - cp->spoiled = 0; + else + cp->spoiled = 0; } cp = cp2; }