Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d742eae8 authored by Bill Huey (hui's avatar Bill Huey (hui Committed by Linus Torvalds
Browse files

[PATCH] xtensa: ptrace: EXIT_ZOMBIE fix



We're testing the wrong task_struct field.

Acked-by: default avatarChris Zankel <chris@zankel.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 35df17c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;