mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
lvconvert: ensure proper init of pv_list
(cherry picked from commit f514e37978
)
This commit is contained in:
parent
ef907d5321
commit
01943774cd
@ -483,7 +483,7 @@ static struct dm_list *_failed_pv_list(struct volume_group *vg)
|
|||||||
if (pvl->pv->pe_alloc_count == 0)
|
if (pvl->pv->pe_alloc_count == 0)
|
||||||
continue;
|
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.");
|
log_error("Allocation of failed_pvs list entry failed.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user