[CRIU] [PATCH] cr-restore.c: fixed compilation errors on ARM

Andrey Vagin avagin at openvz.org
Fri Aug 30 06:59:50 EDT 2013


Use decode_pointer() to convert a virtual address into a native pointer.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cr-restore.c b/cr-restore.c
index b79d433..801425d 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -568,7 +568,7 @@ static int unmap_guard_pages()
 			continue;
 
 		if (vma->vma.flags & MAP_GROWSDOWN) {
-			void *addr = (void *) vma_premmaped_start(&vma->vma);
+			void *addr = decode_pointer(vma_premmaped_start(&vma->vma));
 
 			if (munmap(addr - PAGE_SIZE, PAGE_SIZE)) {
 				pr_perror("Can't unmap guard page\n");
-- 
1.8.3.1



More information about the CRIU mailing list