Commit a70b1c79 authored by Andrei Vagin's avatar Andrei Vagin

restorer: check that close() returns an expected thread pid

It is a typo fix which was added on rebase.
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent cad611b3
......@@ -1554,8 +1554,8 @@ long __export_restore_task(struct task_restore_args *args)
*/
RUN_CLONE_RESTORE_FN(ret, clone_flags, new_sp, parent_tid, thread_args, args->clone_restore_fn);
if (ret != thread_args[i].pid - 1) {
pr_err("Unable to create a thread: %ld", ret);
if (ret != thread_args[i].pid) {
pr_err("Unable to create a thread: %ld\n", ret);
goto core_restore_end;
}
}
......
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