summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-06-06 21:23:44 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-06-06 21:23:44 +0000
commit4666aac4037d19a0cf60daecfa558b2b62237b76 (patch)
treef0c640bf3a78cd148708b8886a6ac779d8326aff /arch/mips
parent16363993b3aad2369e593add69d83a96839785f4 (diff)
Fix inverted comparison bug.
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/ptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
index 9759ced3b..06c3ad657 100644
--- a/arch/mips/kernel/ptrace.c
+++ b/arch/mips/kernel/ptrace.c
@@ -289,7 +289,7 @@ asmlinkage int sys_ptrace(long request, long pid, long addr, long data)
*/
case PTRACE_KILL:
res = 0;
- if (child->state != TASK_ZOMBIE) /* already dead */
+ if (child->state == TASK_ZOMBIE) /* already dead */
break;
child->exit_code = SIGKILL;
wake_up_process(child);