diff options
author | Dean Deng <deandeng@google.com> | 2020-10-28 19:00:01 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-28 19:02:02 -0700 |
commit | 265f1eb2c7abbbf924448ef6bbd8cddb13e66b9f (patch) | |
tree | ad863e1f94d8c21edcb7ee3fe1d5b429c5a5962b /pkg/sentry/fsimpl/devpts/devpts.go | |
parent | 3b4674ffe0e6ef1b016333ee726293ecf70c4e4e (diff) |
Add leak checking for kernfs.Dentry.
Updates #1486.
PiperOrigin-RevId: 339581879
Diffstat (limited to 'pkg/sentry/fsimpl/devpts/devpts.go')
-rw-r--r-- | pkg/sentry/fsimpl/devpts/devpts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/devpts/devpts.go b/pkg/sentry/fsimpl/devpts/devpts.go index 9185877f6..346cca558 100644 --- a/pkg/sentry/fsimpl/devpts/devpts.go +++ b/pkg/sentry/fsimpl/devpts/devpts.go @@ -113,7 +113,7 @@ func (fstype *FilesystemType) newFilesystem(ctx context.Context, vfsObj *vfs.Vir root.EnableLeakCheck() var rootD kernfs.Dentry - rootD.Init(&fs.Filesystem, root) + rootD.InitRoot(&fs.Filesystem, root) // Construct the pts master inode and dentry. Linux always uses inode // id 2 for ptmx. See fs/devpts/inode.c:mknod_ptmx. |