Skip to content

Commit ee2ee4d

Browse files
author
Stefan
committed
Fix add overflow check on recursive mutex counter
1 parent 3fd7f17 commit ee2ee4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

queue.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,10 @@ static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength,
833833
if( pxMutex->u.xSemaphore.xMutexHolder == xTaskGetCurrentTaskHandle() )
834834
{
835835
( pxMutex->u.xSemaphore.uxRecursiveCallCount )++;
836+
837+
/* check if an overflow occurred */
838+
configASSERT( pxMutex->u.xSemaphore.uxRecursiveCallCount );
839+
836840
xReturn = pdPASS;
837841
}
838842
else

0 commit comments

Comments
 (0)