Commit f79af53a authored by Stephen Boyd's avatar Stephen Boyd
Browse files

msm: pil: Correctly check for overwriting memory



memblock_is_region_memory() checks to see if the region specified
is fully contained within a memory block (i.e. it is a subset of
a memblock). For PIL use cases we want to know if the region
we're loading the image into overlaps with a memory region that
the kernel is actively using. Use memblock_overlaps_memory() to
check for this case.

While we're here update the error message to be more informative
by printing the address range that failed to pass.

Change-Id: I543fb04624dbf8698ce8ef8ca2726145c5e6069e
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 1aa4e5a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment