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

ipc: add error print in case of image read failure during variables restore

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
Kinsbursky Stanislav
2012-02-10 13:42:50 +03:00
committed by Cyrill Gorcunov
parent 0f1b3229a3
commit 01198ad7df

View File

@@ -401,8 +401,10 @@ static int prepare_ipc_var(int pid)
return -1;
ret = read_img(fd, &var);
if (ret <= 0)
if (ret <= 0) {
pr_err("Failed to read IPC namespace variables\n");
return -EFAULT;
}
show_var_entry(&var);