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

rst: Don't fail if task entries unmap fail

We cannot fail at that late stage, as everything is restored
and running. In the worst case (unmap fails) restored task would
have one extra mapping.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-09-27 17:04:20 +04:00
parent f1edcb32f5
commit aec951ec07

View File

@@ -930,12 +930,7 @@ long __export_restore_task(struct task_restore_core_args *args)
restore_posix_timers(args);
ret = sys_munmap(args->task_entries, TASK_ENTRIES_SIZE);
if (ret < 0) {
ret = ((long)__LINE__ << 16) | ((-ret) & 0xffff);
goto core_restore_failed;
}
sys_munmap(args->task_entries, TASK_ENTRIES_SIZE);
sys_munmap(args->rst_mem, args->rst_mem_size);
/*
@@ -955,9 +950,4 @@ core_restore_end:
pr_err("Restorer fail %ld\n", sys_getpid());
sys_exit_group(1);
return -1;
core_restore_failed:
ARCH_FAIL_CORE_RESTORE;
return ret;
}