nullfs: plug vnode ref leak in null_vptocnp

The lower vnode is already referenced and nodeget is supposed to consume
the reference. Thus the extra vref call was causing a leak.

Reported by:	pho
Reviewed by:	kib
MFC after:	1 week
This commit is contained in:
Mateusz Guzik 2016-09-09 10:40:55 +00:00
parent 9e7cb06c17
commit 6a3e46059a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305659

View File

@ -893,7 +893,6 @@ null_vptocnp(struct vop_vptocnp_args *ap)
vn_lock(vp, locked | LK_RETRY);
return (ENOENT);
}
vref(ldvp);
error = null_nodeget(vp->v_mount, ldvp, dvp);
if (error == 0) {
#ifdef DIAGNOSTIC