Commit 181c44aa authored by Pavel Emelyanov's avatar Pavel Emelyanov

compel,s390: Fix setting regs for tasks

Item's thread struct pid is not a pointer in master.
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent e2e1dbf4
...@@ -435,13 +435,13 @@ int arch_set_thread_regs(struct pstree_item *item) ...@@ -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;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment