jasonbu commented on code in PR #14083:
URL: https://github.com/apache/nuttx/pull/14083#discussion_r1797637419


##########
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)

Review Comment:
   @anchao this patch only fix the regression on !tcb -> tcb == NULL. we will 
try to make mempool compatible with relay free to allow when exit, reuse tcb 
after exit. we should keep the nxsched_suspend_scheduler no regression at 
higher priority.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to