Commit 1c43dc2d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

restore: Report error number if PR_SET_MM failed

travis-ci: success for restore: Report error number if PR_SET_MM failed
Reported-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 3e153605
......@@ -1249,8 +1249,11 @@ long __export_restore_task(struct task_restore_args *args)
* new ones from image file.
*/
ret |= restore_self_exe_late(args);
} else
} else {
if (ret)
pr_err("sys_prctl(PR_SET_MM, PR_SET_MM_MAP) failed with %d\n", (int)ret);
sys_close(args->fd_exe_link);
}
if (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