summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-04 20:01:14 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-04 20:01:14 +0000
commit766e530e5e9c20daea967034a827dbb895a97d1e (patch)
treefd98e06b25876c075afc41d5471927c4d2ee1403 /pkg/sentry
parent44d86281bb85a0f60d4952c16ad15159831c7b45 (diff)
parentdcffddf0cae026411e7e678744a1e39dc2b513cf (diff)
Merge release-20200127.0-60-gdcffddf (automated)
Diffstat (limited to 'pkg/sentry')
-rwxr-xr-xpkg/sentry/vfs/mount.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/sentry/vfs/mount.go b/pkg/sentry/vfs/mount.go
index d39528051..1fbb420f9 100755
--- a/pkg/sentry/vfs/mount.go
+++ b/pkg/sentry/vfs/mount.go
@@ -423,7 +423,8 @@ func (mntns *MountNamespace) IncRef() {
}
// DecRef decrements mntns' reference count.
-func (mntns *MountNamespace) DecRef(vfs *VirtualFilesystem) {
+func (mntns *MountNamespace) DecRef() {
+ vfs := mntns.root.fs.VirtualFilesystem()
if refs := atomic.AddInt64(&mntns.refs, -1); refs == 0 {
vfs.mountMu.Lock()
vfs.mounts.seq.BeginWrite()