diff --git a/src/nodeinfo.c b/src/nodeinfo.c index 245992275d7909ffe5a5d674642e2e110795b27c..04ae38223e1edb3a3db6e2136a2af8cd8103f3ce 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -2043,7 +2043,7 @@ nodeGetFreePages(unsigned int npages, lastCell = MIN(lastCell, startCell + cellCount); - for (cell = startCell; cell < lastCell; cell++) { + for (cell = startCell; cell <= lastCell; cell++) { for (i = 0; i < npages; i++) { unsigned int page_size = pages[i]; unsigned int page_free;