coverity: Dereferencing after a null check (FORWARD_NULL)
Build Documentation / build-html (push) Has been cancelled

Add proper null pointer validation and fix potential dereference after null
check in scheduler critical sections. This addresses Coverity FORWARD_NULL
defect by ensuring pointers are checked before use and maintaining defensive
coding practices throughout the scheduler implementation.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5
2025-08-08 09:11:15 +08:00
committed by Xiang Xiao
parent 7f167ecc85
commit e2aec529cb
+1 -1
View File
@@ -96,7 +96,7 @@ bool nxsched_merge_pending(void)
*/
for (;
(rtcb && ptcb->sched_priority <= rtcb->sched_priority);
(ptcb->sched_priority <= rtcb->sched_priority);
rtcb = rtcb->flink)
{
}