[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>

authored by Bill Huey (hui and committed by Linus Torvalds d742eae8 35df17c5

+1 -1
+1 -1
arch/xtensa/kernel/ptrace.c
··· 212 */ 213 case PTRACE_KILL: 214 ret = 0; 215 - if (child->state == EXIT_ZOMBIE) /* already dead */ 216 break; 217 child->exit_code = SIGKILL; 218 child->ptrace &= ~PT_SINGLESTEP;
··· 212 */ 213 case PTRACE_KILL: 214 ret = 0; 215 + if (child->exit_state == EXIT_ZOMBIE) /* already dead */ 216 break; 217 child->exit_code = SIGKILL; 218 child->ptrace &= ~PT_SINGLESTEP;