Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: 5740/1: fix valid_phys_addr_range() range check
Commit 1522ac3 ("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 <[email protected]> Signed-off-by: Russell King <[email protected]>
- Loading branch information