]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8167/1: extend the reserved memory for initrd to be page aligned
authorYalin Wang <Yalin.Wang@sonymobile.com>
Fri, 26 Sep 2014 02:07:09 +0000 (03:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Oct 2014 20:29:17 +0000 (21:29 +0100)
commita2d4c1d11ab1df88b18eb0f3613b9a96b8a09e7f
treea980b63e25ac081cf33c4a9011fc0b453b1183b0
parent675bff28f31b28d4ac3180fff258cc06f413a76c
ARM: 8167/1: extend the reserved memory for initrd to be page aligned

This patch extends the start and end address of initrd to be page aligned,
so that we can free all memory including the un-page aligned head or tail
page of initrd, if the start or end address of initrd are not page
aligned, the page can't be freed by free_initrd_mem() function.

Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/init.c
arch/arm64/mm/init.c