mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-07 05:34:59 -05:00
Add in a removed check for if a task is attempting to read a variable from a location it has write access to in xPortIsAuthorizedToAccessBuffer.
This commit is contained in:
parent
625b24a104
commit
3ac3e478c6
1 changed files with 3 additions and 1 deletions
|
|
@ -598,7 +598,9 @@ static BaseType_t prvMPURegionAuthorizesBuffer( const xMPU_REGION_REGISTERS * xT
|
|||
if( ulAccessRequested == tskMPU_READ_PERMISSION ) /* RO. */
|
||||
{
|
||||
if( ( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RW_USER_RO ) ||
|
||||
( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RO_USER_RO ) )
|
||||
( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RO_USER_RO ) ||
|
||||
( ulMPURegionAccessPermissions == portMPU_REGION_PRIV_RW_USER_RW ) )
|
||||
|
||||
{
|
||||
xAccessGranted = pdTRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue