mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
cov: add explicit check for vg existence
Since we check !vg - add check before accessing ->status.
This commit is contained in:
parent
f4b49dae1e
commit
a4eb378fe4
@ -454,7 +454,7 @@ static struct volume_group *_vg_read_raw_area(struct cmd_context *cmd,
|
|||||||
(unsigned long long)rlocn->size,
|
(unsigned long long)rlocn->size,
|
||||||
vgname);
|
vgname);
|
||||||
|
|
||||||
if (precommitted)
|
if (vg && precommitted)
|
||||||
vg->status |= PRECOMMITTED;
|
vg->status |= PRECOMMITTED;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user