From: David Teigland Date: Wed, 6 Dec 2017 16:48:32 +0000 (-0600) Subject: lvmlockd: clear coverity complaint X-Git-Tag: v2_02_177~44 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=54154dc6f11ae869228cf9f36dc5ae919e861caa;p=lvm2.git lvmlockd: clear coverity complaint --- 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. */