diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/bootmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c index e8c567177dcf..16b9465eb4eb 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
@@ -204,6 +204,8 @@ restart_scan: | |||
204 | unsigned long j; | 204 | unsigned long j; |
205 | i = find_next_zero_bit(bdata->node_bootmem_map, eidx, i); | 205 | i = find_next_zero_bit(bdata->node_bootmem_map, eidx, i); |
206 | i = ALIGN(i, incr); | 206 | i = ALIGN(i, incr); |
207 | if (i >= eidx) | ||
208 | break; | ||
207 | if (test_bit(i, bdata->node_bootmem_map)) | 209 | if (test_bit(i, bdata->node_bootmem_map)) |
208 | continue; | 210 | continue; |
209 | for (j = i + 1; j < i + areasize; ++j) { | 211 | for (j = i + 1; j < i + areasize; ++j) { |