mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
io_uring/zcrx: increment fallback loop src offset
Don't forget to adjust the source offset in io_copy_page(), otherwise
it'll be copying into the same location in some cases for highmem
setups.
Fixes: e67645bb7f ("io_uring/zcrx: prepare fallback for larger pages")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
1 parent
09cfd3c52e
commit
e9a9dcb4cc
1 file changed
+1
@@ -1079,6 +1079,7 @@ static ssize_t io_copy_page(struct io_copy_cache *cc, struct page *src_page,
|
||||
|
||||
cc->size -= n;
|
||||
cc->offset += n;
|
||||
src_offset += n;
|
||||
len -= n;
|
||||
copied += n;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user