From 181c44aa3f8b6f615f80b11d62bf502b45faca5e Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 15 Aug 2017 15:46:04 +0300 Subject: [PATCH] compel,s390: Fix setting regs for tasks Item's thread struct pid is not a pointer in master. Signed-off-by: Pavel Emelyanov --- criu/arch/s390/crtools.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/criu/arch/s390/crtools.c b/criu/arch/s390/crtools.c index cfab50868..27b19f76f 100644 --- a/criu/arch/s390/crtools.c +++ b/criu/arch/s390/crtools.c @@ -435,13 +435,13 @@ int arch_set_thread_regs(struct pstree_item *item) item->pid->state == TASK_HELPER) continue; for (i = 0; i < item->nr_threads; i++) { - if (item->threads[i]->state == TASK_DEAD || - item->threads[i]->state == TASK_ZOMBIE) + if (item->threads[i].state == TASK_DEAD || + item->threads[i].state == TASK_ZOMBIE) continue; - if (set_task_regs(item->threads[i]->real, + if (set_task_regs(item->threads[i].real, item->core[i])) { pr_perror("Not set registers for task %d", - item->threads[i]->real); + item->threads[i].real); return -1; } }