summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-07-26 15:41:28 +0000
committerpjd <pjd@FreeBSD.org>2004-07-26 15:41:28 +0000
commitdca201cdfb98d3b580d93ab68eab0bf281a96557 (patch)
tree4860cc3a72404779283268cc9bcfea5f5dd96618 /sys
parent4a150a7afeaa7d867222ed5b0c588cdc6705a7eb (diff)
downloadFreeBSD-src-dca201cdfb98d3b580d93ab68eab0bf281a96557.zip
FreeBSD-src-dca201cdfb98d3b580d93ab68eab0bf281a96557.tar.gz
M_WAITOK is ok here, while I'm using M_WAITOK later in this function.
Diffstat (limited to 'sys')
-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 553e47b..68ace39 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;
OpenPOWER on IntegriCloud