From 2b454c0ae51f63f7bb4d8f851014a184bc8ae785 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 12 Apr 2003 16:36:19 +0000 Subject: [PATCH] Fix a bug which resulted in orphanization getting confused every now and then. --- sys/geom/geom_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c index deb8d7efabbf..c6e95f408fa8 100644 --- a/sys/geom/geom_event.c +++ b/sys/geom/geom_event.c @@ -289,7 +289,7 @@ g_post_event(enum g_events ev, ...) if (p == NULL) break; g_trace(G_T_TOPOLOGY, " ref %p", p); - ep->ref[n++] = p; + ep->ref[n] = p; } va_end(ap); KASSERT(p == NULL, ("Too many references to event"));