]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 5402/1: fix a case of wrap-around in sanity_check_meminfo()
authorNicolas Pitre <nico@cam.org>
Wed, 18 Feb 2009 21:29:22 +0000 (22:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Feb 2009 09:49:45 +0000 (09:49 +0000)
commit050dbde6ced288126eaba323e647b1f90b4e21ef
treeae0910729307786e5393b66373239c4dee48303f
parent627b6ac3e77f9fe1413ad3af052ad38652e660cd
[ARM] 5402/1: fix a case of wrap-around in sanity_check_meminfo()

In the non highmem case, if two memory banks of 1GB each are provided,
the second bank would evade suppression since its virtual base would
be 0.  Fix this by disallowing any memory bank which virtual base
address is found to be lower than PAGE_OFFSET.

Reported-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/mmu.c