mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user