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)
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>

No differences found