[CRIU] [PATCH] mem: don't screen page dump failure

Alexander Kartashov alekskartashov at parallels.com
Thu Jun 13 10:26:50 EDT 2013


This patch prevents page dump failure screening
by the PARASITE_CMD_MPROTECT_VMAS command success.

Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
 mem.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mem.c b/mem.c
index 0b81dd0..d6c807c 100644
--- a/mem.c
+++ b/mem.c
@@ -457,8 +457,7 @@ int parasite_dump_pages_seized(struct parasite_ctl *ctl,
 		pr_err("Can't dump page with parasite\n");
 
 	pargs->add_prot = 0;
-	ret = parasite_execute_daemon(PARASITE_CMD_MPROTECT_VMAS, ctl);
-	if (ret) {
+	if (parasite_execute_daemon(PARASITE_CMD_MPROTECT_VMAS, ctl)) {
 		pr_err("Can't rollback unprotected vmas with parasite\n");
 		ret = -1;
 	}
-- 
1.7.10.4



More information about the CRIU mailing list