Blame SOURCES/lvm2-2_02_181-dmsetup-fix-error-propagation-in-_display_info_cols.patch

5e29a5
 tools/dmsetup.c | 4 +++-
5e29a5
 1 file changed, 3 insertions(+), 1 deletion(-)
5e29a5
5e29a5
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
5e29a5
index 95a15dd..3cdf862 100644
5e29a5
--- a/tools/dmsetup.c
5e29a5
+++ b/tools/dmsetup.c
5e29a5
@@ -939,8 +939,10 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info)
5e29a5
 			goto_out;
5e29a5
 
5e29a5
 		/* No regions to report is not an error */
5e29a5
-		if (!dm_stats_get_nr_regions(obj.stats))
5e29a5
+		if (!dm_stats_get_nr_regions(obj.stats)) {
5e29a5
+			r = 1;
5e29a5
 			goto out;
5e29a5
+		}
5e29a5
 	}
5e29a5
 
5e29a5
 	/* group report with no groups? */