projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2c17aa
)
RISC-V: Free-up initrd in free_initrd_mem()
author
Anup Patel
<anup.patel@wdc.com>
Wed, 13 Feb 2019 11:13:01 +0000
(16:43 +0530)
committer
Anup Patel
<anup@brainfault.org>
Thu, 21 Feb 2019 05:56:50 +0000
(11:26 +0530)
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>
arch/riscv/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/riscv/mm/init.c
b/arch/riscv/mm/init.c
index 9e7b3ee78089dac93498b048358a60500486feed..b379a75ac6a6778052b9161612357ba5df620648 100644
(file)
--- 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 */