From b6dae8eae08f85705248bc98120609d19d4424cf Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 Mar 2019 14:47:57 +0800 Subject: [PATCH 16/17] stats: initilize regions to NULL Commit 3750b0cff5ab1c41076afdf8275e3fa20aa756d0 used bad: error path in more occasions thus it now needs regions defined as NULL. (cherry picked from commit 83c6f7e7e6e76199d836bf694266c78e3cbc12f1) --- libdm/libdm-stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index ec9801a..5d90231 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -4807,7 +4807,7 @@ uint64_t *dm_stats_update_regions_from_fd(struct dm_stats *dms, int fd, { struct dm_histogram *bounds = NULL; int nr_bins, precise, regroup; - uint64_t *regions, count = 0; + uint64_t *regions = NULL, count = 0; const char *alias = NULL; if (!dms->regions || !dm_stats_group_present(dms, group_id)) { -- 2.19.1