Skip to content

Commit 1dbc776

Browse files
kstribrnAmznaggarg
andauthored
[Fix] Reset correct priority on disinherit timeout (#1338)
This commit corrects vTaskPriorityDisinheritAfterTimeout to reset the previously inherited priority when the task disiheriting timeout was the only task at that priority. Without this change the ready list for the inherited priority will remain set when no task is ready at that priority. This can have consequences later as the ready priority flags are assumed to be accurate. Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]>
1 parent 26f9a2f commit 1dbc776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6916,7 +6916,7 @@ static void prvResetNextTaskUnblockTime( void )
69166916
/* It is known that the task is in its ready list so
69176917
* there is no need to check again and the port level
69186918
* reset macro can be called directly. */
6919-
portRESET_READY_PRIORITY( pxTCB->uxPriority, uxTopReadyPriority );
6919+
portRESET_READY_PRIORITY( uxPriorityUsedOnEntry, uxTopReadyPriority );
69206920
}
69216921
else
69226922
{

0 commit comments

Comments
 (0)