Skip to content

Fix a ready-list corruption bug in OS_TmrCondWait#54

Open
eldonrivers wants to merge 5 commits into
weston-embedded:developfrom
eldonrivers:eldon/tmrcondwait-disinherit-fix
Open

Fix a ready-list corruption bug in OS_TmrCondWait#54
eldonrivers wants to merge 5 commits into
weston-embedded:developfrom
eldonrivers:eldon/tmrcondwait-disinherit-fix

Conversation

@eldonrivers

Copy link
Copy Markdown

Fix a ready-list corruption bug in OS_TmrCondWait where the priority-disinherit shortcut updates OSTmrTaskTCB.Prio in place but doesn't move the task between ready lists. The next operation (OS_RdyListRemove inside OS_Pend) then looks at the new priority and operates on the wrong list, corrupting both lists and leaving other tasks stranded.

@eldonrivers

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants