fix MPU wrapper for vTaskDelete for calling task deletion (#745)

pull/750/head
kar-rahul-aws 2 years ago committed by GitHub
parent b5f670f826
commit 6f3586516a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1360,12 +1360,12 @@
xInternalTaskHandle = xTaskGetCurrentTaskHandle();
lIndex = MPU_GetIndexForTaskHandle( xInternalTaskHandle );
vTaskDelete( xInternalTaskHandle );
if( lIndex != -1 )
{
MPU_SetIndexFreeInKernelObjectPool( lIndex );
}
vTaskDelete( xInternalTaskHandle );
}
else
{
@ -1377,8 +1377,8 @@
if( xInternalTaskHandle != NULL )
{
vTaskDelete( xInternalTaskHandle );
MPU_SetIndexFreeInKernelObjectPool( CONVERT_TO_INTERNAL_INDEX( lIndex ) );
vTaskDelete( xInternalTaskHandle );
}
}
}

Loading…
Cancel
Save