summaryrefslogtreecommitdiffstats
path: root/lib/cache
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cache')
-rw-r--r--lib/cache/lvmcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index 519096db..8d039688 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -1628,7 +1628,8 @@ void lvmcache_destroy(struct cmd_context *cmd, int retain_orphans)
dm_list_init(&_vginfos);
if (retain_orphans)
- init_lvmcache_orphans(cmd);
+ if (!init_lvmcache_orphans(cmd))
+ stack;
}
int lvmcache_pvid_is_locked(const char *pvid) {