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: Stephen Boyd <sboyd@codeaurora.org>
1 file changed