Commit d742eae8e2655a960b2e07f3f622d78546c14031

Authored by Bill Huey (hui
Committed by Linus Torvalds
1 parent 35df17c57c

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

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

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