1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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) if (!pv_tags)
log_debug_alloc("Matched allocation PV tag %s on existing %s with free space on %s.", 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 else
log_debug_alloc("Eliminating allocation area %" PRIu32 " at PV %s start PE %" PRIu32 log_debug_alloc("Eliminating allocation area %" PRIu32 " at PV %s start PE %" PRIu32
" from consideration: PV tag %s already used.", " from consideration: PV tag %s already used.",