summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_mirror.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_mirror.c')
-rw-r--r--sys/geom/geom_mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_mirror.c b/sys/geom/geom_mirror.c
index 23e2f52..db426cd 100644
--- a/sys/geom/geom_mirror.c
+++ b/sys/geom/geom_mirror.c
@@ -214,7 +214,7 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
g_topology_unlock();
break;
}
- gp->softc = g_malloc(sizeof(struct g_mirror_softc), M_WAITOK);
+ gp->softc = g_malloc(sizeof(struct g_mirror_softc), 0);
sc = gp->softc;
memcpy(sc->magic, buf + 16, sizeof sc->magic);
g_topology_lock();
OpenPOWER on IntegriCloud