aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/stripe
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-07-26 15:41:28 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-07-26 15:41:28 +0000
commit2017a9d3e2b8ee36a75f7560f4ea2c0c741eeb0f (patch)
tree4860cc3a72404779283268cc9bcfea5f5dd96618 /sys/geom/stripe
parent75cc259de88232f0a1807463dcf1341d6fb1b86a (diff)
Notes
Diffstat (limited to 'sys/geom/stripe')
-rw-r--r--sys/geom/stripe/g_stripe.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/geom/stripe/g_stripe.c b/sys/geom/stripe/g_stripe.c
index 553e47b72805..68ace390250b 100644
--- a/sys/geom/stripe/g_stripe.c
+++ b/sys/geom/stripe/g_stripe.c
@@ -774,14 +774,7 @@ g_stripe_create(struct g_class *mp, const struct g_stripe_metadata *md,
gp = g_new_geomf(mp, "%s.stripe", md->md_name);
gp->softc = NULL; /* for a moment */
- sc = malloc(sizeof(*sc), M_STRIPE, M_NOWAIT | M_ZERO);
- if (sc == NULL) {
- G_STRIPE_DEBUG(0, "Can't allocate memory for device %s.",
- gp->name);
- g_destroy_geom(gp);
- return (NULL);
- }
-
+ sc = malloc(sizeof(*sc), M_STRIPE, M_WAITOK | M_ZERO);
gp->start = g_stripe_start;
gp->spoiled = g_stripe_orphan;
gp->orphan = g_stripe_orphan;