summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBill Huey (hui <billh@gnuppy.monkey.org>2006-09-01 06:27:39 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-01 20:39:08 +0200
commitd742eae8e2655a960b2e07f3f622d78546c14031 (patch)
tree66505da9522487897d86cfafd78844f174b4592b /arch
parent[PATCH] task delay accounting fixes (diff)
downloadlinux-d742eae8e2655a960b2e07f3f622d78546c14031.tar.xz
linux-d742eae8e2655a960b2e07f3f622d78546c14031.zip
[PATCH] xtensa: ptrace: EXIT_ZOMBIE fix
We're testing the wrong task_struct field. Acked-by: Chris Zankel <chris@zankel.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/xtensa/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/ptrace.c b/arch/xtensa/kernel/ptrace.c
index 5064d9383963..9aea23cc0dc5 100644
--- a/arch/xtensa/kernel/ptrace.c
+++ b/arch/xtensa/kernel/ptrace.c
@@ -212,7 +212,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)
*/
case PTRACE_KILL:
ret = 0;
- if (child->state == EXIT_ZOMBIE) /* already dead */
+ if (child->exit_state == EXIT_ZOMBIE) /* already dead */
break;
child->exit_code = SIGKILL;
child->ptrace &= ~PT_SINGLESTEP;