From: Michal Privoznik Date: Wed, 24 Sep 2014 13:10:18 +0000 (+0200) Subject: nodeGetFreePages: Push forgotten change X-Git-Tag: v1.2.9-rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aa8a68faa86d6e1c6ecaeabcec487ee30eff813;p=thirdparty%2Flibvirt.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 --- diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 04ae38223e..3bc0c3cc47 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -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++) {