summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2015-06-23 18:40:20 +0000
committerjmg <jmg@FreeBSD.org>2015-06-23 18:40:20 +0000
commit110a049369fb1fc8bf011fe87e28a699b154ecbe (patch)
treea7f5040a1e2a8d28c54eadd676072f8901d612f8 /sys/kern/vfs_subr.c
parent1ecca63ad3bc3e6ec10bfd735d3daa7e86c0d912 (diff)
downloadFreeBSD-src-110a049369fb1fc8bf011fe87e28a699b154ecbe.zip
FreeBSD-src-110a049369fb1fc8bf011fe87e28a699b154ecbe.tar.gz
zero this struct as it depends upon it...
Reviewed by: mjg Differential Revision: https://reviews.freebsd.org/D2890
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index ce194f9..1f1a7b6 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3602,7 +3602,7 @@ v_addpollinfo(struct vnode *vp)
if (vp->v_pollinfo != NULL)
return;
- vi = uma_zalloc(vnodepoll_zone, M_WAITOK);
+ vi = uma_zalloc(vnodepoll_zone, M_WAITOK | M_ZERO);
mtx_init(&vi->vpi_lock, "vnode pollinfo", NULL, MTX_DEF);
knlist_init(&vi->vpi_selinfo.si_note, vp, vfs_knllock,
vfs_knlunlock, vfs_knl_assert_locked, vfs_knl_assert_unlocked);
OpenPOWER on IntegriCloud