summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/opath.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2021-04-21 10:39:29 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-21 10:41:28 -0700
commitc2955339d86437981ce53d2971ce83479ef94028 (patch)
treee68486bf1e193f23d6b3e9ba506c50c073a94a65 /pkg/sentry/vfs/opath.go
parent07a78ecb2918905af030a8cf81ee86ddd1c622c5 (diff)
Automated rollback of changelist 369325957
PiperOrigin-RevId: 369686285
Diffstat (limited to 'pkg/sentry/vfs/opath.go')
-rw-r--r--pkg/sentry/vfs/opath.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/vfs/opath.go b/pkg/sentry/vfs/opath.go
index 47848c76b..39fbac987 100644
--- a/pkg/sentry/vfs/opath.go
+++ b/pkg/sentry/vfs/opath.go
@@ -121,7 +121,7 @@ func (fd *opathFD) Stat(ctx context.Context, opts StatOptions) (linux.Statx, err
Start: fd.vfsfd.vd,
})
stat, err := fd.vfsfd.vd.mount.fs.impl.StatAt(ctx, rp, opts)
- rp.Release(ctx)
+ vfsObj.putResolvingPath(ctx, rp)
return stat, err
}
@@ -134,6 +134,6 @@ func (fd *opathFD) StatFS(ctx context.Context) (linux.Statfs, error) {
Start: fd.vfsfd.vd,
})
statfs, err := fd.vfsfd.vd.mount.fs.impl.StatFSAt(ctx, rp)
- rp.Release(ctx)
+ vfsObj.putResolvingPath(ctx, rp)
return statfs, err
}