From: Bill Huey (hui) We're testing the wrong task_struct field. Cc: Chris Zankel Signed-off-by: Andrew Morton --- arch/xtensa/kernel/ptrace.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/xtensa/kernel/ptrace.c~xtensa-ptrace-exit_zombie-fix arch/xtensa/kernel/ptrace.c --- a/arch/xtensa/kernel/ptrace.c~xtensa-ptrace-exit_zombie-fix +++ a/arch/xtensa/kernel/ptrace.c @@ -212,7 +212,7 @@ long arch_ptrace(struct task_struct *chi */ 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; _