Commit 2dcafd14 authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

restore: return -1 if fail

In cr_dump_tasks() we expect restore_root_task to return < 0 if
error ocures.
Signed-off-by: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 64a7aa55
......@@ -1779,7 +1779,7 @@ out_kill:
out:
__restore_switch_stage(CR_STATE_FAIL);
pr_err("Restoring FAILED.\n");
return 1;
return -1;
}
static int prepare_task_entries(void)
......
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