Fix off-by-one in assertion on fbo region number

parent 6c3689d4
......@@ -1844,7 +1844,7 @@ fellow_busy_region_alloc(struct fellow_busy *fbo, size_t size, int8_t cram)
if (fbo->nregion < FCO_MAX_REGIONS / 2)
cram = 0;
assert(fbo->nregion <= FCO_MAX_REGIONS);
assert(fbo->nregion < FCO_MAX_REGIONS);
fdr = &fbo->region[fbo->nregion];
*fdr = FC_INJ ? buddy_off_extent_nil :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment