summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r--sys/geom/geom_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index 4688bcf..1f7e8b0 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -337,7 +337,7 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, void *
{
dev_t dev;
- dev = g_malloc(sizeof *dev, M_ZERO);
+ dev = g_malloc(sizeof *dev, M_WAITOK | M_ZERO);
dp->d_unit = unit;
dp->d_dev = dev;
dp->d_flags = flags;
OpenPOWER on IntegriCloud