diff --git a/kernel/exit.c b/kernel/exit.c index 533e5f85669a..213f906f5e16 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -590,7 +590,7 @@ void mm_update_next_owner(struct mm_struct *mm) /* * Search in the siblings */ - list_for_each_entry(c, &p->parent->children, sibling) { + list_for_each_entry(c, &p->real_parent->children, sibling) { if (c->mm == mm) goto assign_new_owner; }