Skip to content
Commit c19ebc6b authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: fg-memif: fix an OOB access while getting number of partitions



Currently, sram_address is assigned to the start address of next
partition to see if the address is within the next partition.
This can end up accessing the next element of address map causing
an out of bounds access when the last partition is accessed
already. Fix this by simplifying the calculation to find number
of partitions.

CRs-Fixed: 2130104
Change-Id: Idab43471b4e6e964152b5a46f0e2f0a4bfc03471
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent e3950ebc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment