summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2016-10-04 18:04:46 +0000
committermjg <mjg@FreeBSD.org>2016-10-04 18:04:46 +0000
commit8811f2edcead40fb40bb8c4aaad1a66ed97653dd (patch)
tree02ea881437e3b44a08c0bd3848d2b826557f4333
parentcd6070a7739d92199880340ecac9ee21e9f76b68 (diff)
downloadFreeBSD-src-8811f2edcead40fb40bb8c4aaad1a66ed97653dd.zip
FreeBSD-src-8811f2edcead40fb40bb8c4aaad1a66ed97653dd.tar.gz
MFC r305659:
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.
-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 d3a7906..9a4f578 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -896,7 +896,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
OpenPOWER on IntegriCloud