mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 15:25:21 +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:
committed by
Cyrill Gorcunov
parent
0f1b3229a3
commit
01198ad7df
4
ipc_ns.c
4
ipc_ns.c
@@ -401,8 +401,10 @@ static int prepare_ipc_var(int pid)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
ret = read_img(fd, &var);
|
ret = read_img(fd, &var);
|
||||||
if (ret <= 0)
|
if (ret <= 0) {
|
||||||
|
pr_err("Failed to read IPC namespace variables\n");
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
}
|
||||||
|
|
||||||
show_var_entry(&var);
|
show_var_entry(&var);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user