diff options
Diffstat (limited to 'arch/arm64/mm/init.c')
-rw-r--r-- | arch/arm64/mm/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 6041e4008a83..997c6345cdd6 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c | |||
@@ -387,7 +387,7 @@ void __init mem_init(void) | |||
387 | void free_initmem(void) | 387 | void free_initmem(void) |
388 | { | 388 | { |
389 | poison_init_mem(__init_begin, __init_end - __init_begin); | 389 | poison_init_mem(__init_begin, __init_end - __init_begin); |
390 | free_initmem_default(0); | 390 | free_initmem_default(-1); |
391 | } | 391 | } |
392 | 392 | ||
393 | #ifdef CONFIG_BLK_DEV_INITRD | 393 | #ifdef CONFIG_BLK_DEV_INITRD |
@@ -398,7 +398,7 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
398 | { | 398 | { |
399 | if (!keep_initrd) { | 399 | if (!keep_initrd) { |
400 | poison_init_mem((void *)start, PAGE_ALIGN(end) - start); | 400 | poison_init_mem((void *)start, PAGE_ALIGN(end) - start); |
401 | free_reserved_area((void *)start, (void *)end, 0, "initrd"); | 401 | free_reserved_area((void *)start, (void *)end, -1, "initrd"); |
402 | } | 402 | } |
403 | } | 403 | } |
404 | 404 | ||