diff options
author | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
commit | 7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch) | |
tree | c383ffd6da8fbab2789828310191f8717f675124 /sys/kern/subr_blist.c | |
parent | b1f3daafde37fa36b819c0649c121d98175a6a2d (diff) |
Notes
Diffstat (limited to 'sys/kern/subr_blist.c')
-rw-r--r-- | sys/kern/subr_blist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/subr_blist.c b/sys/kern/subr_blist.c index d706524b25d48..9ac4338c4a1c8 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; |