mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: ensure proper init of pv_list
This commit is contained in:
parent
2e01af0f78
commit
f514e37978
@ -484,7 +484,7 @@ static struct dm_list *_failed_pv_list(struct volume_group *vg)
|
||||
if (pvl->pv->pe_alloc_count == 0)
|
||||
continue;
|
||||
|
||||
if (!(new_pvl = dm_pool_alloc(vg->vgmem, sizeof(*new_pvl)))) {
|
||||
if (!(new_pvl = dm_pool_zalloc(vg->vgmem, sizeof(*new_pvl)))) {
|
||||
log_error("Allocation of failed_pvs list entry failed.");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user