diff options
| -rw-r--r-- | fs/read_write.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/read_write.c b/fs/read_write.c index 6c8c55dec2bc..3ac28987f22a 100644 --- a/fs/read_write.c +++ b/fs/read_write.c | |||
| @@ -839,9 +839,6 @@ static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, | |||
| 839 | max = min(in_inode->i_sb->s_maxbytes, out_inode->i_sb->s_maxbytes); | 839 | max = min(in_inode->i_sb->s_maxbytes, out_inode->i_sb->s_maxbytes); |
| 840 | 840 | ||
| 841 | pos = *ppos; | 841 | pos = *ppos; |
| 842 | retval = -EINVAL; | ||
| 843 | if (unlikely(pos < 0)) | ||
| 844 | goto fput_out; | ||
| 845 | if (unlikely(pos + count > max)) { | 842 | if (unlikely(pos + count > max)) { |
| 846 | retval = -EOVERFLOW; | 843 | retval = -EOVERFLOW; |
| 847 | if (pos >= max) | 844 | if (pos >= max) |
