diff options
Diffstat (limited to 'fs/splice.c')
-rw-r--r-- | fs/splice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/splice.c b/fs/splice.c index b150493b6fc3..b0c157d76948 100644 --- a/fs/splice.c +++ b/fs/splice.c | |||
@@ -1143,7 +1143,7 @@ static int get_iovec_page_array(const struct iovec __user *iov, | |||
1143 | * Fill this contiguous range into the partial page map. | 1143 | * Fill this contiguous range into the partial page map. |
1144 | */ | 1144 | */ |
1145 | for (i = 0; i < error; i++) { | 1145 | for (i = 0; i < error; i++) { |
1146 | const int plen = min_t(size_t, len, PAGE_SIZE) - off; | 1146 | const int plen = min_t(size_t, len, PAGE_SIZE - off); |
1147 | 1147 | ||
1148 | partial[buffers].offset = off; | 1148 | partial[buffers].offset = off; |
1149 | partial[buffers].len = plen; | 1149 | partial[buffers].len = plen; |