]> sourceware.org Git - lvm2.git/commitdiff
lvmlockd: fix missing lock_type null check
authorDavid Teigland <teigland@redhat.com>
Wed, 6 Jun 2018 18:56:02 +0000 (13:56 -0500)
committerJoe Thornber <ejt@redhat.com>
Thu, 7 Jun 2018 15:17:04 +0000 (16:17 +0100)
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

index 4d58d74b247608307ed237ca7041f3e837159d00..53aa4f134144c6bd1341cdf9e821448e55b83758 100644 (file)
@@ -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)) {
This page took 0.044469 seconds and 5 git commands to generate.