summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_bsd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-10 23:34:12 +0000
committerphk <phk@FreeBSD.org>2003-03-10 23:34:12 +0000
commit35dab36ffaa5a804d1bafb8cae3384794c17214b (patch)
treea4e5ea829dbf2eaa72e130e495dee0d72a4a7069 /sys/geom/geom_bsd.c
parent4772824f71c1c71668fb1562bde95f337d5c50f0 (diff)
downloadFreeBSD-src-35dab36ffaa5a804d1bafb8cae3384794c17214b.zip
FreeBSD-src-35dab36ffaa5a804d1bafb8cae3384794c17214b.tar.gz
Fix yet another fallout of our M_* song and dance.
Diffstat (limited to 'sys/geom/geom_bsd.c')
-rw-r--r--sys/geom/geom_bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c
index cd5bd5d..96b6cfd 100644
--- a/sys/geom/geom_bsd.c
+++ b/sys/geom/geom_bsd.c
@@ -570,7 +570,7 @@ g_bsd_diocbsdbb(dev_t dev, u_long cmd __unused, caddr_t data, int fflag __unused
ms = gsp->softc;
/* The disklabel to set is the ioctl argument. */
- buf = g_malloc(BBSIZE, 0);
+ buf = g_malloc(BBSIZE, M_WAITOK);
p = *(void **)data;
error = copyin(p, buf, BBSIZE);
if (error) {
OpenPOWER on IntegriCloud