diff options
Diffstat (limited to 'arch/arm64/mm/init.c')
-rw-r--r-- | arch/arm64/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 6bc135042f5e..7cae155e81a5 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c | |||
@@ -363,7 +363,7 @@ void __init arm64_memblock_init(void) | |||
363 | * Otherwise, this is a no-op | 363 | * Otherwise, this is a no-op |
364 | */ | 364 | */ |
365 | u64 base = phys_initrd_start & PAGE_MASK; | 365 | u64 base = phys_initrd_start & PAGE_MASK; |
366 | u64 size = PAGE_ALIGN(phys_initrd_size); | 366 | u64 size = PAGE_ALIGN(phys_initrd_start + phys_initrd_size) - base; |
367 | 367 | ||
368 | /* | 368 | /* |
369 | * We can only add back the initrd memory if we don't end up | 369 | * We can only add back the initrd memory if we don't end up |