Skip to content

Commit 37a3746

Browse files
authored
Merge branch 'FreeRTOS:main' into main
2 parents 075c1f7 + 1dbc776 commit 37a3746

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tasks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
16891689
/* MISRA Ref 11.5.1 [Malloc memory assignment] */
16901690
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#rule-115 */
16911691
/* coverity[misra_c_2012_rule_11_5_violation] */
1692-
pxStack = pvPortMallocStack( ( ( ( size_t ) uxStackDepth ) * sizeof( StackType_t ) ) );
1692+
pxStack = ( StackType_t * ) pvPortMallocStack( ( ( ( size_t ) uxStackDepth ) * sizeof( StackType_t ) ) );
16931693

16941694
if( pxStack != NULL )
16951695
{
@@ -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)