From 80d5f4ff14264a243c5d9d1f186e99b07bc3f39b 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; }