1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +03:00

lvmlockd: fix another missing lock_type null check

Same as 347c807f8.
This commit is contained in:
David Teigland 2018-06-21 09:00:23 -05:00
parent acb784e2a8
commit d4fd39f64c

View File

@ -710,7 +710,7 @@ static int _split_mirror_images(struct logical_volume *lv,
return 0;
}
if (!strcmp(lv->vg->lock_type, "dlm"))
if (lv->vg->lock_type && !strcmp(lv->vg->lock_type, "dlm"))
new_lv->lock_args = lv->lock_args;
if (!dm_list_empty(&split_images)) {