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; } }