]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48be07ff9f997d45d8df84e5579ce35975ba8d62
tree01f4b320ca6ed709d2b24a1eefa5499427ee36de
parent6dc58ce9e6e5c1e11eb6f48ff98602d777136d54
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