diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-04 20:01:14 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-04 20:01:14 +0000 |
commit | 766e530e5e9c20daea967034a827dbb895a97d1e (patch) | |
tree | fd98e06b25876c075afc41d5471927c4d2ee1403 /pkg/sentry/vfs/mount.go | |
parent | 44d86281bb85a0f60d4952c16ad15159831c7b45 (diff) | |
parent | dcffddf0cae026411e7e678744a1e39dc2b513cf (diff) |
Merge release-20200127.0-60-gdcffddf (automated)
Diffstat (limited to 'pkg/sentry/vfs/mount.go')
-rwxr-xr-x | pkg/sentry/vfs/mount.go | 3 |
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() |