summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-06-25 02:25:49 +0000
committergVisor bot <gvisor-bot@google.com>2020-06-25 02:25:49 +0000
commitc0ce88a2dbec3313ebea917b12596c27b80efc0f (patch)
treed9c026df512e298c6e6831e2c7dc85a1b4a50990 /pkg/sentry/vfs
parent2838db2d03da0627b493a7b0a23729eeb21ed384 (diff)
parentb5e814445a4db5df7f4f58027422a5dba97ea766 (diff)
Merge release-20200608.0-124-gb5e814445 (automated)
Diffstat (limited to 'pkg/sentry/vfs')
-rw-r--r--pkg/sentry/vfs/file_description_impl_util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/vfs/file_description_impl_util.go b/pkg/sentry/vfs/file_description_impl_util.go
index 1e66997ce..3fec0d6d6 100644
--- a/pkg/sentry/vfs/file_description_impl_util.go
+++ b/pkg/sentry/vfs/file_description_impl_util.go
@@ -327,7 +327,7 @@ func (fd *DynamicBytesFileDescriptionImpl) pwriteLocked(ctx context.Context, src
writable, ok := fd.data.(WritableDynamicBytesSource)
if !ok {
- return 0, syserror.EINVAL
+ return 0, syserror.EIO
}
n, err := writable.Write(ctx, src, offset)
if err != nil {