summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-04-12 16:36:19 +0000
committerphk <phk@FreeBSD.org>2003-04-12 16:36:19 +0000
commitbef7fcb8069877b4a1a31b4b680137ea2283c9a0 (patch)
tree404abe215f70b443404cd68ac5e6589767651da4 /sys
parent7e0664b1743bccc84ff74f64613d0f3a9fd45c20 (diff)
downloadFreeBSD-src-bef7fcb8069877b4a1a31b4b680137ea2283c9a0.zip
FreeBSD-src-bef7fcb8069877b4a1a31b4b680137ea2283c9a0.tar.gz
Fix a bug which resulted in orphanization getting confused every now
and then.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/geom_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_event.c b/sys/geom/geom_event.c
index deb8d7e..c6e95f4 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"));
OpenPOWER on IntegriCloud