mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 15:10:38 +00:00
[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>
This commit is contained in:
parent
35df17c57c
commit
d742eae8e2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user