diff --git a/kernel/sched.c b/kernel/sched.c index 3df84ea6aba91972ab78af7846392051422264b4..37cf07aa41647741e1581f8120b4cb2a291c5545 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -4918,7 +4918,7 @@ static void show_task(struct task_struct *p) } #endif printk(KERN_CONT "%5lu %5d %6d\n", free, - task_pid_nr(p), task_pid_nr(p->parent)); + task_pid_nr(p), task_pid_nr(p->real_parent)); if (state != TASK_RUNNING) show_stack(p, NULL);