[CRIU] [PATCH] mem: fix calculation of a page offset in generate_iovs
Andrey Vagin
avagin at openvz.org
Wed Feb 19 04:24:25 PST 2014
The offset should point on a next entry.
Cc: Pavel Tikhomirov <snorcht at gmail.com>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mem.c b/mem.c
index 2bb6081..d85aefd 100644
--- a/mem.c
+++ b/mem.c
@@ -145,7 +145,7 @@ static int generate_iovs(struct vma_area *vma, int pagemap,
}
if (ret) {
- *off += (pfn - 1) * PAGE_SIZE;
+ *off += pfn * PAGE_SIZE;
return ret;
}
}
--
1.8.5.3
More information about the CRIU
mailing list