Chandan U created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1067

Project:Branches: Chandanuvm/rtems:chandan/issue-5491 to rtems/rtos/rtems:main
Author:   Chandan U



## Summary

cpukit: fix off-chain state checks and pointer clearing

Semaphore wait nodes store flags in the left part of previous. So 
\_Chain_Is_node_off_chain() is not safe in all semaphore paths. Use node-\>next 
== NULL where needed for semaphore wait nodes.

Also clear both previous and next when a node is set off chain. do this 
whenever chain remove/get paths before re-use.

Updates #5491 Closes #5491

## Generative AI

<!--If you have used AI please use the "AI Contribution" template otherwise 
leave this blank see our fulls statement at 
https://www.rtems.org/generative-ai/-->

<!--Default settings, if it is a dropdown it will set after submission-->

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1067
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to