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

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