From 22b842567812e9382aca9796d271d8f681cf05e3 Mon Sep 17 00:00:00 2001 From: hujun5 Date: Fri, 11 Oct 2024 14:21:02 +0800 Subject: [PATCH] sched: fix nxsched_suspend_scheduler regression This commit fixes the regression from https://github.com/apache/nuttx/pull/13877 Signed-off-by: hujun5 --- sched/sched/sched_suspendscheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/sched/sched_suspendscheduler.c b/sched/sched/sched_suspendscheduler.c index e1c1105e1e4e5..c0833ef87d417 100644 --- a/sched/sched/sched_suspendscheduler.c +++ b/sched/sched/sched_suspendscheduler.c @@ -63,7 +63,7 @@ void nxsched_suspend_scheduler(FAR struct tcb_s *tcb) { /* Handle the task exiting case */ - if (tcb != NULL) + if (tcb == NULL) { return; }