summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-03-10 23:34:12 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-03-10 23:34:12 +0000
commite60dce6b42dc48c50ee68a90084a116463c90ce4 (patch)
treea4e5ea829dbf2eaa72e130e495dee0d72a4a7069 /sys
parent323333724957d4d71d941ff494e0110d8f70a50c (diff)
Notes
Diffstat (limited to 'sys')
-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 cd5bd5d9c121..96b6cfd16e7c 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) {