summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-08-21 21:33:02 +0000
committergVisor bot <gvisor-bot@google.com>2020-08-21 21:33:02 +0000
commit1b1de470fa39ce55df3559c2e4901a74d3084f13 (patch)
treebfffb7fbe247127b9a28c0f83f5689a601ef80ad /pkg/sentry/syscalls/linux
parentbb26261d7bf19ace95bad78a7e5b88df75618997 (diff)
parent5ec3d4ed3e3cda8944e851ef845f6d275999858a (diff)
Merge release-20200810.0-83-g5ec3d4ed3 (automated)
Diffstat (limited to 'pkg/sentry/syscalls/linux')
-rw-r--r--pkg/sentry/syscalls/linux/vfs2/mount.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/mount.go b/pkg/sentry/syscalls/linux/vfs2/mount.go
index 4bd5c7ca2..769c9b92f 100644
--- a/pkg/sentry/syscalls/linux/vfs2/mount.go
+++ b/pkg/sentry/syscalls/linux/vfs2/mount.go
@@ -109,8 +109,8 @@ func Mount(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.Syscall
return 0, nil, err
}
defer target.Release(t)
-
- return 0, nil, t.Kernel().VFS().MountAt(t, creds, source, &target.pop, fsType, &opts)
+ _, err = t.Kernel().VFS().MountAt(t, creds, source, &target.pop, fsType, &opts)
+ return 0, nil, err
}
// Umount2 implements Linux syscall umount2(2).