Skip to content

Commit

Permalink
RISC-V: Free-up initrd in free_initrd_mem()
Browse files Browse the repository at this point in the history
We should free-up initrd memory in free_initrd_mem() instead
of doing nothing.

Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Mike Rapoport <[email protected]>
  • Loading branch information
avpatel committed Feb 21, 2019
1 parent f2c17aa commit 823900c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/riscv/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ static void __init setup_initrd(void)
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 */

Expand Down

0 comments on commit 823900c

Please sign in to comment.