1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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 40c1f7889f
commit e166d2b14c

View File

@ -698,7 +698,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)) {