]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] Tighten pfn_valid() test.
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 15 Sep 2005 14:17:59 +0000 (15:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 15 Sep 2005 14:17:59 +0000 (15:17 +0100)
commit9b644601d39bde1785880d930d99db0ca2c188fd
treeb88e67dcdce66832980245bcc450233599f857d0
parentf5e82d30e217d8a3a50bd65b18e7579660ea1388
[ARM] Tighten pfn_valid() test.

Thomas Gleixner reported that mmaping and unmapping each physical
page in turn eventually caused the kernel to oops.  It appears
that pfn_valid() in the discontigmem case was too simplistic for
proper operation.

Tighten the logic so we also check if the PFN is within the range
of the selected memory node.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/memory.h