From: Anup Patel Date: Wed, 13 Feb 2019 11:13:01 +0000 (+0530) Subject: RISC-V: Free-up initrd in free_initrd_mem() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=823900cd01301c4720b23afa9f3d08036e07245a;p=openwrt%2Fstaging%2Fblogic.git RISC-V: Free-up initrd in free_initrd_mem() We should free-up initrd memory in free_initrd_mem() instead of doing nothing. Signed-off-by: Anup Patel Reviewed-by: Mike Rapoport --- diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 9e7b3ee78089..b379a75ac6a6 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -94,8 +94,9 @@ disable: initrd_end = 0; } -void free_initrd_mem(unsigned long start, unsigned long end) +void __init free_initrd_mem(unsigned long start, unsigned long end) { + free_reserved_area((void *)start, (void *)end, -1, "initrd"); } #endif /* CONFIG_BLK_DEV_INITRD */