1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: missing check for PV2

Patch missed also check this pointer dereference.
This commit is contained in:
Zdenek Kabelac 2015-11-11 22:05:52 +01:00
parent e0828e885b
commit 70af08122e

View File

@ -2143,7 +2143,7 @@ static int _match_pv_tags(const struct dm_config_node *cling_tag_list_cn,
}
if (!pv_tags)
log_debug_alloc("Matched allocation PV tag %s on existing %s with free space on %s.",
str, pv_dev_name(pv1), pv_dev_name(pv2));
str, pv_dev_name(pv1), pv2 ? pv_dev_name(pv2) : "-");
else
log_debug_alloc("Eliminating allocation area %" PRIu32 " at PV %s start PE %" PRIu32
" from consideration: PV tag %s already used.",