diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-06-25 02:25:49 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-25 02:25:49 +0000 |
commit | c0ce88a2dbec3313ebea917b12596c27b80efc0f (patch) | |
tree | d9c026df512e298c6e6831e2c7dc85a1b4a50990 /pkg/sentry/vfs | |
parent | 2838db2d03da0627b493a7b0a23729eeb21ed384 (diff) | |
parent | b5e814445a4db5df7f4f58027422a5dba97ea766 (diff) |
Merge release-20200608.0-124-gb5e814445 (automated)
Diffstat (limited to 'pkg/sentry/vfs')
-rw-r--r-- | pkg/sentry/vfs/file_description_impl_util.go | 2 |
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 { |