diff options
author | jmg <jmg@FreeBSD.org> | 2015-06-23 18:40:20 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2015-06-23 18:40:20 +0000 |
commit | 110a049369fb1fc8bf011fe87e28a699b154ecbe (patch) | |
tree | a7f5040a1e2a8d28c54eadd676072f8901d612f8 /sys/kern/vfs_subr.c | |
parent | 1ecca63ad3bc3e6ec10bfd735d3daa7e86c0d912 (diff) | |
download | FreeBSD-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.c | 2 |
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); |