mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix a label_verify error path.
This commit is contained in:
parent
3b2765395d
commit
deb202bd42
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.15 -
|
Version 2.02.15 -
|
||||||
====================================
|
====================================
|
||||||
|
Fix a label_verify error path.
|
||||||
|
|
||||||
Version 2.02.14 - 10th November 2006
|
Version 2.02.14 - 10th November 2006
|
||||||
====================================
|
====================================
|
||||||
|
@ -347,13 +347,11 @@ int label_verify(struct device *dev)
|
|||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
if (!dev_open(dev)) {
|
if (!dev_open(dev)) {
|
||||||
stack;
|
|
||||||
|
|
||||||
if ((info = info_from_pvid(dev->pvid)))
|
if ((info = info_from_pvid(dev->pvid)))
|
||||||
lvmcache_update_vgname_and_id(info, ORPHAN, ORPHAN,
|
lvmcache_update_vgname_and_id(info, ORPHAN, ORPHAN,
|
||||||
0, NULL);
|
0, NULL);
|
||||||
|
|
||||||
goto out;
|
return_0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(l = _find_labeller(dev, buf, §or)))
|
if (!(l = _find_labeller(dev, buf, §or)))
|
||||||
|
Loading…
Reference in New Issue
Block a user