Commit d76e3a8d authored by Olav Haugan's avatar Olav Haugan
Browse files

msm: board-8064: Fix overflow in memory calc.



An overflow occurs in locate_unstable_memory() when physical
memory address space ends at 0xFFFFFFFF. Change code to
handle overflow by ensuring that variables are limited to
0xFFFFFFFF and by rearranging additions and subtractions.

Change-Id: I11cb890c09ef18fe7c103cbdf1232677704fcc17
Signed-off-by: default avatarOlav Haugan <ohaugan@codeaurora.org>
parent c362a4e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment