Commit 10840f03 authored by Paul Mundt's avatar Paul Mundt

sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent bfbedf78
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
*/ */
int valid_phys_addr_range(unsigned long addr, size_t count) int valid_phys_addr_range(unsigned long addr, size_t count)
{ {
if (addr < (PAGE_OFFSET + (PFN_START << PAGE_SHIFT))) if (addr < __MEMORY_START)
return 0; return 0;
if (addr + count > __pa(high_memory)) if (addr + count > __pa(high_memory))
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment