nodeGetFreePages: Push forgotten change

In the previous patch I've changed the for loop bounds but forgot
to 'git add' changes that adapt the rest of the code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Michal Privoznik 2014-09-24 15:10:18 +02:00
parent d3489548b5
commit 4aa8a68faa

View File

@ -2041,7 +2041,7 @@ nodeGetFreePages(unsigned int npages,
goto cleanup;
}
lastCell = MIN(lastCell, startCell + cellCount);
lastCell = MIN(lastCell, startCell + (int) cellCount - 1);
for (cell = startCell; cell <= lastCell; cell++) {
for (i = 0; i < npages; i++) {