mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: ensure dm_stats_get_area_offset() returns a value
This commit is contained in:
parent
623b46a17d
commit
427d0a5e92
@ -1341,6 +1341,7 @@ uint64_t dm_stats_get_area_offset(const struct dm_stats *dms, uint64_t *offset,
|
||||
if (!dms || !dms->regions)
|
||||
return_0;
|
||||
*offset = dms->regions[region_id].step * area_id;
|
||||
return 1;
|
||||
}
|
||||
|
||||
uint64_t dm_stats_get_current_area_start(const struct dm_stats *dms,
|
||||
|
Loading…
Reference in New Issue
Block a user