aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2016-09-09 10:40:55 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2016-09-09 10:40:55 +0000
commit6a3e46059a03422d81c2211e86eae91f61ea2399 (patch)
tree64898d50cd6ec9ab2cbe4f47ac40d608d0b56f09 /sys
parent9e7cb06c173f98a6369813b4ef0ce6b836f1ad62 (diff)
downloadsrc-6a3e46059a03422d81c2211e86eae91f61ea2399.tar.gz
src-6a3e46059a03422d81c2211e86eae91f61ea2399.zip
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
Notes
Notes: svn path=/head/; revision=305659
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/nullfs/null_vnops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index d544e0530663..4ee6b4546c08 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -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