2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

restore: Iterate tgt vmas by number, not by terminating point

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-10-29 12:52:01 +04:00
parent 55a04580d5
commit d7db85e9dc
2 changed files with 23 additions and 14 deletions

View File

@@ -2000,7 +2000,7 @@ static VmaEntry *vma_list_remap(void *addr, unsigned long len, struct vm_area_li
vma++;
}
vma->start = 0;
vma->start = 1;
free_mappings(vmas);
return ret;