1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

libdm: fix end-of-groups test in _stats_walk_end()

This commit is contained in:
Bryn M. Reeves 2016-09-16 13:08:30 +01:00
parent 9c8c8fb63a
commit c26cd48536

View File

@ -1543,7 +1543,7 @@ static int _stats_walk_end(const struct dm_stats *dms, uint64_t *flags,
}
if (*flags & DM_STATS_WALK_GROUP) {
if (*cur_g < dms->max_region)
if (*cur_g <= dms->max_region)
goto out;
*flags &= ~DM_STATS_WALK_GROUP;
}