diff options
Diffstat (limited to 'xlators/storage/posix/src/posix.c')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index e3130f4f1e0..ebe43d9e8e1 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -2363,6 +2363,8 @@ posix_readv (call_frame_t *frame, xlator_t *this, op_errno = ENOENT; else if ((offset + vec.iov_len) == stbuf.ia_size) op_errno = ENOENT; + else if (offset > stbuf.ia_size) + op_errno = ENOENT; op_ret = vec.iov_len; out: |