[prev in list] [next in list] [prev in thread] [next in thread]
List: lvm2-commits
Subject: =?utf-8?q?=5Blvm2-commits=5D?= master - lvmlockd: fix another missing lock_type null check
From: David Teigland <teigland () sourceware ! org>
Date: 2018-06-21 14:26:14
Message-ID: 20180621142614.329DA2F0FD196 () mailman01 ! phx2 ! fedoraproject ! org
[Download RAW message or body]
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e166d2b14ca22ead559a5898cc229ecbcc261007
Commit: e166d2b14ca22ead559a5898cc229ecbcc261007
Parent: 40c1f7889fd88ce4a2f2b42c594db3deb8f84593
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Jun 21 09:00:23 2018 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Jun 21 09:24:51 2018 -0500
lvmlockd: fix another missing lock_type null check
Same as 347c807f8.
---
lib/metadata/mirror.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/metadata/mirror.c b/lib/metadata/mirror.c
index 11f2a8f..58615d8 100644
--- a/lib/metadata/mirror.c
+++ b/lib/metadata/mirror.c
@@ -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)) {
_______________________________________________
lvm2-commits mailing list -- lvm2-commits@lists.fedorahosted.org
To unsubscribe send an email to lvm2-commits-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/lvm2-commits@lists.fedorahosted.org/message/S45RH35PUCLF2DZPMIU6JGSJOQOEXTO4/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic