diff options
-rw-r--r-- | sys/geom/geom_slice.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index dc8d3ab..45f8a10 100644 --- a/sys/geom/geom_slice.c +++ b/sys/geom/geom_slice.c @@ -42,6 +42,7 @@ #include <unistd.h> #include <stdlib.h> #include <signal.h> +#include <string.h> #include <err.h> #else #include <sys/systm.h> @@ -301,10 +302,8 @@ g_slice_orphan(struct g_consumer *cp) gp = cp->geom; gp->flags |= G_GEOM_WITHER; - /* First prevent any new requests */ error = cp->provider->error; LIST_FOREACH(pp, &gp->provider, provider) g_orphan_provider(pp, error); - return; } |