ARM: move memory layout sanity checking before meminfo initialization
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 5 Jul 2011 18:58:29 +0000 (19:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 5 Jul 2011 19:27:16 +0000 (20:27 +0100)
commit0371d3f7e8f1cddaee1f215e42c09a40e235d810
tree01f4b320ca6ed709d2b24a1eefa5499427ee36de
parent6f96521fab978046070a697926cf351c2c37af29
ARM: move memory layout sanity checking before meminfo initialization

Ensure that the meminfo array is sanity checked before we pass the
memory to memblock.  This helps to ensure that memblock and meminfo
agree on the dimensions of memory, especially when more memory is
passed than the kernel can deal with.

Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/setup.c
arch/arm/mm/mmu.c
arch/arm/mm/nommu.c