From deb202bd423dd48f9da3d22310dce5da7520031b Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 14 Nov 2006 15:03:07 +0000 Subject: [PATCH] Fix a label_verify error path. --- WHATS_NEW | 1 + lib/label/label.c | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index 447ac8b61..5e95fca14 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.15 - ==================================== + Fix a label_verify error path. Version 2.02.14 - 10th November 2006 ==================================== diff --git a/lib/label/label.c b/lib/label/label.c index 907f170a2..f6fb6d1ee 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -347,13 +347,11 @@ int label_verify(struct device *dev) int r = 0; if (!dev_open(dev)) { - stack; - if ((info = info_from_pvid(dev->pvid))) lvmcache_update_vgname_and_id(info, ORPHAN, ORPHAN, 0, NULL); - goto out; + return_0; } if (!(l = _find_labeller(dev, buf, §or)))