diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c index 323484cb0dd1..c610684bf9d7 100644 --- a/sys/geom/concat/g_concat.c +++ b/sys/geom/concat/g_concat.c @@ -450,14 +450,7 @@ g_concat_create(struct g_class *mp, const struct g_concat_metadata *md, gp = g_new_geomf(mp, "%s.concat", md->md_name); gp->softc = NULL; /* for a moment */ - sc = malloc(sizeof(*sc), M_CONCAT, M_NOWAIT | M_ZERO); - if (sc == NULL) { - G_CONCAT_DEBUG(0, "Can't allocate memory for device %s.", - gp->name); - g_destroy_geom(gp); - return (NULL); - } - + sc = malloc(sizeof(*sc), M_CONCAT, M_WAITOK | M_ZERO); gp->start = g_concat_start; gp->spoiled = g_concat_orphan; gp->orphan = g_concat_orphan;