Merge tag 'xfs-4.13-merge-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-2.6-microblaze.git] / mm / nobootmem.c
index 487dad6..36454d0 100644 (file)
@@ -118,7 +118,7 @@ static unsigned long __init __free_memory_core(phys_addr_t start,
        unsigned long end_pfn = min_t(unsigned long,
                                      PFN_DOWN(end), max_low_pfn);
 
-       if (start_pfn > end_pfn)
+       if (start_pfn >= end_pfn)
                return 0;
 
        __free_pages_memory(start_pfn, end_pfn);