Commit 7d8ed36c authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

cr-restore.c: fixed compilation errors on ARM

Use decode_pointer() to convert a virtual address into a native pointer.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fe1c16a5
...@@ -568,7 +568,7 @@ static int unmap_guard_pages() ...@@ -568,7 +568,7 @@ static int unmap_guard_pages()
continue; continue;
if (vma->vma.flags & MAP_GROWSDOWN) { 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)) { if (munmap(addr - PAGE_SIZE, PAGE_SIZE)) {
pr_perror("Can't unmap guard page\n"); pr_perror("Can't unmap guard page\n");
......
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