diff options
Diffstat (limited to 'sys/geom/geom_mirror.c')
-rw-r--r-- | sys/geom/geom_mirror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_mirror.c b/sys/geom/geom_mirror.c index db426cda2a8c..23e2f5244023 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), 0); + gp->softc = g_malloc(sizeof(struct g_mirror_softc), M_WAITOK); sc = gp->softc; memcpy(sc->magic, buf + 16, sizeof sc->magic); g_topology_lock(); |