Commit e89ef66d authored by Marcin Nowakowski's avatar Marcin Nowakowski Committed by Ralf Baechle
Browse files

MIPS: init: Ensure reserved memory regions are not added to bootmem

Memories managed through boot_mem_map are generally expected to define
non-crossing areas. However, if part of a larger memory block is marked
as reserved, it would still be added to bootmem allocator as an
available block and could end up being overwritten by the allocator.

Prevent this by explicitly marking the memory as reserved it if exists
in the range used by bootmem allocator.

Signed-off-by: default avatarMarcin Nowakowski <>

Signed-off-by: default avatarRalf Baechle <>
parent 269aa43a
......@@ -483,6 +483,10 @@ static void __init bootmem_init(void)
/* Not usable memory */
if (start > min_low_pfn && end < max_low_pfn)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment