mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
d3489548b5
commit
4aa8a68faa
|
@ -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++) {
|
||||
|
|
Loading…
Reference in New Issue