Commit b742c125 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

mem: fix calculation of a page offset in generate_iovs

The offset should point on a next entry.

Cc: Pavel Tikhomirov <snorcht@gmail.com>
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 7d091fe9
......@@ -139,7 +139,7 @@ static int generate_iovs(struct vma_area *vma, struct page_pipe *pp, u64 *map, u
}
if (ret) {
*off += (pfn - 1) * PAGE_SIZE;
*off += pfn * PAGE_SIZE;
return ret;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment