summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux/vfs2/sync.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-08-19 02:31:52 +0000
committergVisor bot <gvisor-bot@google.com>2020-08-19 02:31:52 +0000
commitffffdac11e14b1baadf19d357c1fbd20ce2931ee (patch)
tree4a0eeb215ac66723474a0ce2a26a3c64eb65180d /pkg/sentry/syscalls/linux/vfs2/sync.go
parent91407007c0df4813d06e22df1a43d2b0e413d938 (diff)
parentf2822da54293aaf1c161bde62dcfddfc234e4394 (diff)
Merge release-20200810.0-57-gf2822da54 (automated)
Diffstat (limited to 'pkg/sentry/syscalls/linux/vfs2/sync.go')
-rw-r--r--pkg/sentry/syscalls/linux/vfs2/sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/syscalls/linux/vfs2/sync.go b/pkg/sentry/syscalls/linux/vfs2/sync.go
index a6491ac37..6e9b599e2 100644
--- a/pkg/sentry/syscalls/linux/vfs2/sync.go
+++ b/pkg/sentry/syscalls/linux/vfs2/sync.go
@@ -108,7 +108,7 @@ func SyncFileRange(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel
if flags&linux.SYNC_FILE_RANGE_WAIT_AFTER != 0 {
if err := file.Sync(t); err != nil {
- return 0, nil, syserror.ConvertIntr(err, kernel.ERESTARTSYS)
+ return 0, nil, syserror.ConvertIntr(err, syserror.ERESTARTSYS)
}
}
return 0, nil, nil