Commit 0f1b3229 authored by Kinsbursky Stanislav's avatar Kinsbursky Stanislav Committed by Cyrill Gorcunov

ipc: added error print in case of shm obj read failure

Signed-off-by: 's avatarStanislav Kinsbursky <skinsbursky@parallels.com>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 71471920
......@@ -372,8 +372,10 @@ static int prepare_ipc_shm(int pid)
struct ipc_shm_entry shm;
ret = read_img_eof(fd, &shm);
if (ret < 0)
if (ret < 0) {
pr_err("Failed to read IPC shared memory object\n");
return -EIO;
}
if (ret == 0)
break;
......
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