diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index 290097f94..b553da5f5 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -4777,7 +4777,8 @@ uint64_t *dm_stats_create_regions_from_fd(struct dm_stats *dms, int fd, } if (!(regions = _stats_map_file_regions(dms, fd, bounds, precise, - -1, &count, ®roup))) + DM_STATS_GROUP_NOT_PRESENT, + &count, ®roup))) return NULL; if (!group)