diff --git a/libdm/dm-tools/dmsetup.c b/libdm/dm-tools/dmsetup.c index 44386a6dd..fb1a5747c 100644 --- a/libdm/dm-tools/dmsetup.c +++ b/libdm/dm-tools/dmsetup.c @@ -943,8 +943,10 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info) goto_out; /* No regions to report is not an error */ - if (!dm_stats_get_nr_regions(obj.stats)) + if (!dm_stats_get_nr_regions(obj.stats)) { + r = 1; goto out; + } } /* group report with no groups? */