diff --git a/lib/format_text/text_label.c b/lib/format_text/text_label.c index 6edfae7ba..ad323b6d2 100644 --- a/lib/format_text/text_label.c +++ b/lib/format_text/text_label.c @@ -437,7 +437,9 @@ out: baton.info = info; baton.label = *label; - lvmcache_foreach_mda(info, _update_mda, &baton); + if (!lvmcache_foreach_mda(info, _update_mda, &baton)) + return_0; + lvmcache_make_valid(info); return 1;