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:
parent
2a139993b4
commit
42b970d4f3
@ -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 ".",
|
||||||
|
Loading…
Reference in New Issue
Block a user