From: Paul Mundt Date: Thu, 13 Nov 2008 06:38:02 +0000 (+0900) Subject: sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10840f034e2329150ce0e683e636ea13b268d333;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/mm/mmap.c b/arch/sh/mm/mmap.c index 1f3cc3d92d3..8837d511710 100644 --- a/arch/sh/mm/mmap.c +++ b/arch/sh/mm/mmap.c @@ -17,7 +17,7 @@ */ 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; if (addr + count > __pa(high_memory)) return 0;