2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

compel,s390: Fix setting regs for tasks

Item's thread struct pid is not a pointer in master.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov
2017-08-15 15:46:04 +03:00
parent e2e1dbf490
commit 181c44aa3f

View File

@@ -435,13 +435,13 @@ int arch_set_thread_regs(struct pstree_item *item)
item->pid->state == TASK_HELPER) item->pid->state == TASK_HELPER)
continue; continue;
for (i = 0; i < item->nr_threads; i++) { for (i = 0; i < item->nr_threads; i++) {
if (item->threads[i]->state == TASK_DEAD || if (item->threads[i].state == TASK_DEAD ||
item->threads[i]->state == TASK_ZOMBIE) item->threads[i].state == TASK_ZOMBIE)
continue; continue;
if (set_task_regs(item->threads[i]->real, if (set_task_regs(item->threads[i].real,
item->core[i])) { item->core[i])) {
pr_perror("Not set registers for task %d", pr_perror("Not set registers for task %d",
item->threads[i]->real); item->threads[i].real);
return -1; return -1;
} }
} }