cpukit: initialize wait priority chain node before unblock append

In thread queue flush, the wait priority
node come from RBTree extraction and fail the off-chain assertion
during _Chain_Append_unprotected(). Initialize the chain node before
appending it to the local unblock chain.

Updates #5491
This commit is contained in:
Chandan U authored and Kinsey Moore committed 2026-03-06 10:57:56 -06:00
1 parent 0a5cf46ac3
commit bcb618cf8b
1 file changed
+1
+1
View File
@@ -132,6 +132,7 @@ size_t _Thread_queue_Flush_critical(
Scheduler_Node *scheduler_node;
scheduler_node = _Thread_Scheduler_get_home_node( first );
_Chain_Initialize_node( &scheduler_node->Wait.Priority.Node.Node.Chain );
_Chain_Append_unprotected(
&unblock,
&scheduler_node->Wait.Priority.Node.Node.Chain