summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_blist.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_blist.c')
-rw-r--r--sys/kern/subr_blist.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/subr_blist.c b/sys/kern/subr_blist.c
index d706524..9ac4338 100644
--- a/sys/kern/subr_blist.c
+++ b/sys/kern/subr_blist.c
@@ -152,9 +152,7 @@ blist_create(daddr_t blocks)
skip = (skip + 1) << BLIST_META_RADIX_SHIFT;
}
- bl = malloc(sizeof(struct blist), M_SWAP, M_WAITOK);
-
- bzero(bl, sizeof(*bl));
+ bl = malloc(sizeof(struct blist), M_SWAP, M_WAITOK | M_ZERO);
bl->bl_blocks = blocks;
bl->bl_radix = radix;
OpenPOWER on IntegriCloud