Commit 22cda048 authored by Jack Cheung's avatar Jack Cheung
Browse files

arm: mm: Compare phys address instead of virt



Doing __va(movable_reserved_start) can overflow if
movable_reserved_start is a very high address. This
will cause the comparison to evaluate incorrectly.

This change instead compares the physical addresses, which
cannot overflow/underflow.

Change-Id: I6c82df16b77a905617aa6f59c2eeaf7acb36c76d
Signed-off-by: default avatarJack Cheung <jackc@codeaurora.org>
parent 1aa2e29e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment