diff options
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 7185b00650fe..4e2f620de09b 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -282,6 +282,12 @@ void __init arm_memblock_init(struct meminfo *mi, struct machine_desc *mdesc) | |||
282 | memblock_reserve(__pa(_stext), _end - _stext); | 282 | memblock_reserve(__pa(_stext), _end - _stext); |
283 | #endif | 283 | #endif |
284 | #ifdef CONFIG_BLK_DEV_INITRD | 284 | #ifdef CONFIG_BLK_DEV_INITRD |
285 | if (phys_initrd_size && | ||
286 | memblock_is_region_reserved(phys_initrd_start, phys_initrd_size)) { | ||
287 | pr_err("INITRD: 0x%08lx+0x%08lx overlaps in-use memory region - disabling initrd\n", | ||
288 | phys_initrd_start, phys_initrd_size); | ||
289 | phys_initrd_start = phys_initrd_size = 0; | ||
290 | } | ||
285 | if (phys_initrd_size) { | 291 | if (phys_initrd_size) { |
286 | memblock_reserve(phys_initrd_start, phys_initrd_size); | 292 | memblock_reserve(phys_initrd_start, phys_initrd_size); |
287 | 293 | ||