Skip to content

Commit 1a89d1c

Browse files
committed
[Fix] Reset correct priority on disinherit timeout
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.
1 parent fed39c5 commit 1a89d1c

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
@@ -6906,7 +6906,7 @@ static void prvResetNextTaskUnblockTime( void )
69066906
/* It is known that the task is in its ready list so
69076907
* there is no need to check again and the port level
69086908
* reset macro can be called directly. */
6909-
portRESET_READY_PRIORITY( pxTCB->uxPriority, uxTopReadyPriority );
6909+
portRESET_READY_PRIORITY( uxPriorityUsedOnEntry, uxTopReadyPriority );
69106910
}
69116911
else
69126912
{

0 commit comments

Comments
 (0)