From d0bde1114d628cf059782a044bec1cb3b0471475 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Mon, 3 Aug 2020 17:00:58 +0800 Subject: [PATCH] sched/task: do not migrate the task state to INVALID which still on used in task/nxmq_recover() Change-Id: I31273aadd9e09c283cc3d0420dfc854ca8ae1899 Signed-off-by: chao.an --- sched/task/task_terminate.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sched/task/task_terminate.c b/sched/task/task_terminate.c index 127ca5bcef..0f63451771 100644 --- a/sched/task/task_terminate.c +++ b/sched/task/task_terminate.c @@ -158,7 +158,6 @@ int nxtask_terminate(pid_t pid, bool nonblocking) /* Remove the task from the task list */ dq_rem((FAR dq_entry_t *)dtcb, tasklist); - dtcb->task_state = TSTATE_TASK_INVALID; /* At this point, the TCB should no longer be accessible to the system */