[CRIU] [PATCH] restore: don't call free_mappings for an uninitialized list

Andrei Vagin avagin at openvz.org
Sat Oct 21 00:01:13 MSK 2017


From: Andrei Vagin <avagin at virtuozzo.com>

    vma_area_list at entry=0x818) at criu/cr-dump.c:107
107             list_for_each_entry_safe(vma_area, p, &vma_area_list->h, list)

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 criu/cr-restore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index a294fce24..79e9a670f 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -3429,7 +3429,7 @@ static int sigreturn_restore(pid_t pid, struct task_restore_args *task_args, uns
 	if (current->parent == NULL) {
 		/* Wait when all tasks restored all files */
 		if (restore_wait_other_tasks())
-			goto err;
+			goto err_nv;
 	}
 
 	/*
-- 
2.13.3



More information about the CRIU mailing list