[CRIU] [PATCH] ipc: added error print in case of shm obj read failure

Kinsbursky Stanislav skinsbursky at openvz.org
Fri Feb 10 05:16:49 EST 2012



Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>

---
 ipc_ns.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ipc_ns.c b/ipc_ns.c
index 339c770..6e08c5b 100644
--- a/ipc_ns.c
+++ b/ipc_ns.c
@@ -373,8 +373,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;
 



More information about the CRIU mailing list