Date: Tue, 23 Jun 2015 18:40:20 +0000 (UTC) From: John-Mark Gurney <jmg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r284733 - head/sys/kern Message-ID: <201506231840.t5NIeKpU087337@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmg Date: Tue Jun 23 18:40:20 2015 New Revision: 284733 URL: https://svnweb.freebsd.org/changeset/base/284733 Log: zero this struct as it depends upon it... Reviewed by: mjg Differential Revision: https://reviews.freebsd.org/D2890 Modified: head/sys/kern/vfs_subr.c Modified: head/sys/kern/vfs_subr.c ============================================================================== --- head/sys/kern/vfs_subr.c Tue Jun 23 17:54:24 2015 (r284732) +++ head/sys/kern/vfs_subr.c Tue Jun 23 18:40:20 2015 (r284733) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506231840.t5NIeKpU087337>