mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmlockd: fix missing lock_type null check
Missed checking if vg->lock_type is NULL in commit db8d3bdfa
:
lvmlockd: enable mirror split and merge with dlm lock_type
This commit is contained in:
parent
1539e51721
commit
d154dd6638
@ -3395,7 +3395,7 @@ int lv_raid_split(struct logical_volume *lv, int yes, const char *split_name,
|
||||
|
||||
lvl->lv->name = split_name;
|
||||
|
||||
if (!strcmp(lv->vg->lock_type, "dlm"))
|
||||
if (lv->vg->lock_type && !strcmp(lv->vg->lock_type, "dlm"))
|
||||
lvl->lv->lock_args = lv->lock_args;
|
||||
|
||||
if (!vg_write(lv->vg)) {
|
||||
|
Loading…
Reference in New Issue
Block a user