diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-02-13 14:13:01 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-21 08:56:50 +0300 |
commit | 823900cd01301c4720b23afa9f3d08036e07245a (patch) | |
tree | 2e1087efc0139a78b7e50891cdb9af8cd19c29c9 /arch/riscv | |
parent | f2c17aabc917e1092eedb16fa2b8891e9379f7e6 (diff) | |
download | linux-823900cd01301c4720b23afa9f3d08036e07245a.tar.xz |
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 <anup.patel@wdc.com>
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/mm/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |