From ce3af4734af5d38cbf669f6ff42499bb5dfd043a Mon Sep 17 00:00:00 2001 From: Ken Sato Date: Mon, 19 Mar 2018 11:12:50 +0900 Subject: [PATCH] fix: dual hold_thread() in do_kill() --- arch/x86_64/kernel/syscall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86_64/kernel/syscall.c b/arch/x86_64/kernel/syscall.c index 4b87d1f7..cd981901 100644 --- a/arch/x86_64/kernel/syscall.c +++ b/arch/x86_64/kernel/syscall.c @@ -1333,7 +1333,6 @@ done: if (tthread->status != PS_EXITED && (sig == SIGKILL || (tproc->status != PS_EXITED && tproc->status != PS_ZOMBIE))) { - hold_thread(tthread); if ((rc = hold_thread(tthread))) { kprintf("%s: ERROR hold_thread returned %d,tid=%d\n", __FUNCTION__, rc, tthread->tid); tthread = NULL;