arm64: Fix page boundary check when hot onlining
During page online callback, the physical address of the page is checked if it is within the RAM end boundary set by the bootloader. The current check is broken as it misses to online the last PFN, thereby making this page being reserved all the time. Fix this broken check. Change-Id: I36ed5ae3f3ed0f199dacd394358690761ddcd80c Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
This commit is contained in:
parent
dc11b75f80
commit
1c21ebac5b
@ -871,7 +871,7 @@ static int arm64_online_page(struct page *page)
|
||||
{
|
||||
unsigned long phy_addr = page_to_phys(page);
|
||||
|
||||
if (phy_addr + PAGE_SIZE >= bootloader_memory_limit)
|
||||
if (phy_addr + PAGE_SIZE > bootloader_memory_limit)
|
||||
return -EINVAL;
|
||||
|
||||
__online_page_set_limits(page);
|
||||
|
Loading…
Reference in New Issue
Block a user