summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/geom_stats.c')
-rw-r--r--sys/geom/geom_stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/geom_stats.c b/sys/geom/geom_stats.c
index 3b66d27..caf0780 100644
--- a/sys/geom/geom_stats.c
+++ b/sys/geom/geom_stats.c
@@ -73,9 +73,9 @@ g_stat_new(void *id)
break;
}
if (spp == NULL) {
- spp = g_malloc(sizeof *spp, M_ZERO);
+ spp = g_malloc(sizeof *spp, M_ZERO | M_WAITOK);
TAILQ_INSERT_TAIL(&pagelist, spp, list);
- spp->stat = g_malloc(PAGE_SIZE, M_ZERO);
+ spp->stat = g_malloc(PAGE_SIZE, M_ZERO | M_WAITOK);
spp->nfree = statsperpage;
}
gsp = spp->stat;
OpenPOWER on IntegriCloud