aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/mm/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/mmap.c b/arch/sh/mm/mmap.c
index 1f3cc3d92d3d..8837d511710a 100644
--- a/arch/sh/mm/mmap.c
+++ b/arch/sh/mm/mmap.c
@@ -17,7 +17,7 @@
17 */ 17 */
18int valid_phys_addr_range(unsigned long addr, size_t count) 18int valid_phys_addr_range(unsigned long addr, size_t count)
19{ 19{
20 if (addr < (PAGE_OFFSET + (PFN_START << PAGE_SHIFT))) 20 if (addr < __MEMORY_START)
21 return 0; 21 return 0;
22 if (addr + count > __pa(high_memory)) 22 if (addr + count > __pa(high_memory))
23 return 0; 23 return 0;