summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-16 19:10:31 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-16 19:10:31 +0000
commit08511b95f97d780467cc349c4f8f888e0bb0c618 (patch)
treec5b674ec33cb6cff4ea15e2207b407ae8bcb7ea5 /pkg/sentry/syscalls
parent81e030cf1c12937fe9837a7572ce19de57de1247 (diff)
parent28399818fc1e5d294cc93ddd4a1ac7e31c375fbf (diff)
Merge release-20200323.0-164-g2839981 (automated)
Diffstat (limited to 'pkg/sentry/syscalls')
-rw-r--r--pkg/sentry/syscalls/linux/sys_aio.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/sys_aio.go b/pkg/sentry/syscalls/linux/sys_aio.go
index 38cbeba5a..d781d6a04 100644
--- a/pkg/sentry/syscalls/linux/sys_aio.go
+++ b/pkg/sentry/syscalls/linux/sys_aio.go
@@ -290,7 +290,7 @@ func performCallback(t *kernel.Task, file *fs.File, cbAddr usermem.Addr, cb *ioC
// Update the result.
if err != nil {
err = handleIOError(t, ev.Result != 0 /* partial */, err, nil /* never interrupted */, "aio", file)
- ev.Result = -int64(t.ExtractErrno(err, 0))
+ ev.Result = -int64(kernel.ExtractErrno(err, 0))
}
file.DecRef()