From 427d0a5e925d86145df12313aa36d5c61ff59bd5 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 17 Aug 2015 13:56:44 +0100 Subject: [PATCH] libdm: ensure dm_stats_get_area_offset() returns a value --- libdm/libdm-stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index 400b12d1d..50492f348 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -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,