1
0
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:
Zdenek Kabelac 2018-12-14 21:53:34 +01:00 committed by Marian Csontos
parent ef907d5321
commit 01943774cd

View File

@ -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;
} }