]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 5740/1: fix valid_phys_addr_range() range check
authorGreg Ungerer <gerg@snapgear.com>
Thu, 1 Oct 2009 23:45:28 +0000 (00:45 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 2 Oct 2009 21:32:34 +0000 (22:32 +0100)
commitbe8a637d285e8ba98eeb3bb537fead50794634cb
tree5279f344e2da4fd87dadd5a2e39142175807f1e7
parent2346260647b1ed76e4958232cf4993557d871e27
ARM: 5740/1: fix valid_phys_addr_range() range check

Commit 881cf5ba145f1c661c3cb0caeb02448d35211146
("Fix virtual to physical translation macro corner cases")
breaks the end of memory check in valid_phys_addr_range().
The modified expression results in the apparent /dev/mem size
being 2 bytes smaller than what it actually is.

This patch reworks the expression to correctly check the address,
while maintaining use of a valid address to __pa().

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/mmap.c