Commit 823900cd authored by Anup Patel's avatar Anup Patel Committed by Anup Patel

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: default avatarAnup Patel <anup.patel@wdc.com>
Reviewed-by: default avatarMike Rapoport <rppt@linux.ibm.com>
parent f2c17aab
...@@ -94,8 +94,9 @@ static void __init setup_initrd(void) ...@@ -94,8 +94,9 @@ static void __init setup_initrd(void)
initrd_end = 0; 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 */ #endif /* CONFIG_BLK_DEV_INITRD */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment