master - lvmlockd: fix missing lock_type null check
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d154dd66382d1bab4c227f6b3aaa12b6ccbb491f Commit: d154dd66382d1bab4c227f6b3aaa12b6ccbb491f Parent: 1539e51721418768eae894c0179a82cf5ab8e040 Author: David Teigland <[email protected]> AuthorDate: Wed Jun 6 13:56:02 2018 -0500 Committer: Joe Thornber <[email protected]> CommitterDate: Thu Jun 7 16:17:04 2018 +0100
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
--- lib/metadata/raid_manip.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/metadata/raid_manip.c +1 -1
@@ -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)) {