diff options
author | Oleg Nesterov <oleg@redhat.com> | 2009-06-18 01:27:29 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-18 22:03:49 +0200 |
commit | dea33cfd99022d82d923a0c6a3bd895fb6683fb2 (patch) | |
tree | 889ea712abbbb8b8c220dd593383ec6f9ad15ffc /kernel/exit.c | |
parent | ptrace: remove PT_DTRACE from arch/m32r (diff) | |
download | linux-dea33cfd99022d82d923a0c6a3bd895fb6683fb2.tar.xz linux-dea33cfd99022d82d923a0c6a3bd895fb6683fb2.zip |
ptrace: mm_need_new_owner: use ->real_parent to search in the siblings
"Search in the siblings" should use ->real_parent, not ->parent. If the
task is traced then ->parent == tracer, while the task's parent is always
->real_parent.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ retry: /* * 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; } |