From: Bill Huey (hui Date: Fri, 1 Sep 2006 04:27:39 +0000 (-0700) Subject: [PATCH] xtensa: ptrace: EXIT_ZOMBIE fix X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d742eae8e2655a960b2e07f3f622d78546c14031;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] xtensa: ptrace: EXIT_ZOMBIE fix We're testing the wrong task_struct field. Acked-by: Chris Zankel Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;