diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-13 18:34:42 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-13 18:34:42 +0000 |
commit | ce89079990c8cd8a42ee675c7a5fd310c7fdd8de (patch) | |
tree | 6a7e204ac962705fabb545c531340e6098b6e503 /pkg/sentry/vfs | |
parent | 5846738e7bdaf2d9638d51a330d9306f856af6d7 (diff) | |
parent | 432963dd2d9f4797f26a8b2555464a50f8319537 (diff) |
Merge release-20200928.0-102-g432963dd2 (automated)
Diffstat (limited to 'pkg/sentry/vfs')
-rw-r--r-- | pkg/sentry/vfs/mount.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/sentry/vfs/mount.go b/pkg/sentry/vfs/mount.go index 79a2d8c41..78f115bfa 100644 --- a/pkg/sentry/vfs/mount.go +++ b/pkg/sentry/vfs/mount.go @@ -727,14 +727,12 @@ func (mnt *Mount) Root() *Dentry { return mnt.root } -// Root returns mntns' root. A reference is taken on the returned -// VirtualDentry. +// Root returns mntns' root. It does not take a reference on the returned Dentry. func (mntns *MountNamespace) Root() VirtualDentry { vd := VirtualDentry{ mount: mntns.root, dentry: mntns.root.root, } - vd.IncRef() return vd } |