summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_init.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
commit7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch)
treec383ffd6da8fbab2789828310191f8717f675124 /sys/kern/vfs_init.c
parentb1f3daafde37fa36b819c0649c121d98175a6a2d (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_init.c')
-rw-r--r--sys/kern/vfs_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 3a053cfb2b61..3f36a5fd6238 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -119,10 +119,10 @@ vfs_opv_recalc(void)
if (*opv_desc_vector_p)
FREE(*opv_desc_vector_p, M_VNODE);
MALLOC(*opv_desc_vector_p, vop_t **,
- vfs_opv_numops * sizeof(vop_t *), M_VNODE, M_WAITOK);
+ vfs_opv_numops * sizeof(vop_t *), M_VNODE,
+ M_WAITOK | M_ZERO);
if (*opv_desc_vector_p == NULL)
panic("no memory for vop_t ** vector");
- bzero(*opv_desc_vector_p, vfs_opv_numops * sizeof(vop_t *));
/* Fill in, with slot 0 being to return EOPNOTSUPP */
opv_desc_vector = *opv_desc_vector_p;