From 05f3e17a01d01de8e06c603325ce1bd4b708f5cc Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 12 Sep 2014 12:53:00 +0400 Subject: [PATCH] restore: return -1 if fail In cr_dump_tasks() we expect restore_root_task to return < 0 if error ocures. Signed-off-by: Ruslan Kuprieiev Signed-off-by: Pavel Emelyanov --- cr-restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cr-restore.c b/cr-restore.c index da4a64017..634de02d4 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -1778,7 +1778,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)