Skip to content
Commit 3d691988 authored by Andrew Boie's avatar Andrew Boie Committed by Andrew Boie
Browse files

arm_mpu: fix off-by-one in mpu_buffer_validate



The loop that checks the MPU region permissions incorrectly
iterates from (num_region + 1) to 1. This should be
(num_region - 1) to 0. This results in the wrong regions
being checked and possible overflow for any implementation
that uses the max region value of 0xFF.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 65f0c679
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment