mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-16 19:04:53 +08:00
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:
1 parent
0a5cf46ac3
commit
bcb618cf8b
1 file changed
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user