shmem: get_unmapped_area align huge page
[cascardo/linux.git] / mm / memblock.c
index ac12489..ca09915 100644 (file)
@@ -584,6 +584,9 @@ repeat:
                                               nid, flags);
        }
 
+       if (!nr_new)
+               return 0;
+
        /*
         * If this was the first round, resize array and repeat for actual
         * insertions; otherwise, merge and return.