[PATCH] arm: fix valid_phys_addr_range() range check

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Oct 1 11:04:24 EDT 2009


On Thu, Sep 24, 2009 at 04:24:04PM +1000, Greg Ungerer wrote:
> arm: fix valid_phys_addr_range() range check
> 
> Commit 1522ac3ec95ff0230e7aa516f86b674fdf72866c
> ("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().

Looks good, can you please send it to the patch system?



More information about the linux-arm-kernel mailing list