diff options
-rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 69568388c699..b06517b7f97f 100644 --- a/mm/filemap.c +++ b/mm/filemap.c | |||
@@ -1637,7 +1637,7 @@ static ssize_t do_generic_file_read(struct file *filp, loff_t *ppos, | |||
1637 | int error = 0; | 1637 | int error = 0; |
1638 | 1638 | ||
1639 | if (unlikely(*ppos >= inode->i_sb->s_maxbytes)) | 1639 | if (unlikely(*ppos >= inode->i_sb->s_maxbytes)) |
1640 | return -EINVAL; | 1640 | return 0; |
1641 | iov_iter_truncate(iter, inode->i_sb->s_maxbytes); | 1641 | iov_iter_truncate(iter, inode->i_sb->s_maxbytes); |
1642 | 1642 | ||
1643 | index = *ppos >> PAGE_SHIFT; | 1643 | index = *ppos >> PAGE_SHIFT; |