1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: fix endless loop

Coverity noticed endless loop (i not being changed).

TODO: test coverage
This commit is contained in:
Zdenek Kabelac 2017-03-16 00:36:06 +01:00
parent 2a139993b4
commit 42b970d4f3

View File

@ -678,7 +678,7 @@ static void _check_group_regions_present(struct dm_stats *dms,
group_id = i = dm_bit_get_first(regions); group_id = i = dm_bit_get_first(regions);
for (; i > 0; dm_bit_get_next(regions, i)) for (; i > 0; i = dm_bit_get_next(regions, i))
if (!_stats_region_present(&dms->regions[i])) { if (!_stats_region_present(&dms->regions[i])) {
log_warn("Group descriptor " FMTi64 " contains " log_warn("Group descriptor " FMTi64 " contains "
"non-existent region_id " FMTi64 ".", "non-existent region_id " FMTi64 ".",