Fix add overflow check on recursive mutex counter

This commit is contained in:
Stefan 2025-03-03 08:43:10 +01:00
parent 3fd7f174db
commit ee2ee4dc7c

View file

@ -833,6 +833,10 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
{
( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
/* check if an overflow occurred */
configASSERT( pxMutex->u.xSemaphore.uxRecursiveCallCount );
xReturn = pdPASS;
}
else