1
0
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:
Zdenek Kabelac 2021-07-27 17:03:38 +02:00
parent f4b49dae1e
commit a4eb378fe4

View File

@ -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: