Commit 74053de7 authored by Alexander Kartashov's avatar Alexander Kartashov 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 avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent bce89dba
......@@ -317,7 +317,7 @@ static int restore_priv_vma_content(pid_t pid)
return -1;
}
p = (void *)((off) * PAGE_SIZE +
p = decode_pointer((off) * PAGE_SIZE +
vma_premmaped_start(&vma->vma));
if (memcmp(p, buf, PAGE_SIZE) == 0) {
......
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