From 54154dc6f11ae869228cf9f36dc5ae919e861caa Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 6 Dec 2017 10:48:32 -0600 Subject: [PATCH] lvmlockd: clear coverity complaint --- lib/locking/lvmlockd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c index eb7076ccc..0365797da 100644 --- a/lib/locking/lvmlockd.c +++ b/lib/locking/lvmlockd.c @@ -2163,7 +2163,8 @@ static int _lockd_lv_thin(struct cmd_context *cmd, struct logical_volume *lv, } else if (lv_is_thin_pool_metadata(lv)) { struct lv_segment *pool_seg = get_only_segment_using_this_lv(lv); - pool_lv = pool_seg->lv; + if (pool_seg) + pool_lv = pool_seg->lv; } else { /* This should not happen AFAIK. */ -- 2.43.5