]> sourceware.org Git - lvm2.git/commitdiff
lvmlockd: clear coverity complaint
authorDavid Teigland <teigland@redhat.com>
Wed, 6 Dec 2017 16:48:32 +0000 (10:48 -0600)
committerDavid Teigland <teigland@redhat.com>
Wed, 6 Dec 2017 16:49:31 +0000 (10:49 -0600)
lib/locking/lvmlockd.c

index eb7076ccc70b0a17d87031dbf03e9f6bf559524e..0365797daf5d27cb301175ab57093a7fffac3890 100644 (file)
@@ -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. */
This page took 0.045902 seconds and 5 git commands to generate.