Skip to contentSkip to conversation

master - debug: add missing backtrace

PATCH Zdenek Kabelac 1 participant 1 message Dec 5, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=36b211b464a02cf054a838ccf9139379897cf973
Commit:        36b211b464a02cf054a838ccf9139379897cf973
Parent:        3331199cc9f4b3935bc531428f03fbf3bb017d4c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Dec 4 22:29:18 2016 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Dec 5 17:12:42 2016 +0100

debug: add missing backtrace

---
 lib/metadata/lv.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
lib/metadata/lv.c +2 -1
index 4a9fed7..8f13f6b 100644
@@ -255,7 +255,8 @@ char *lvseg_kernel_discards_dup(struct dm_pool *mem, const struct lv_segment *se
 	if (!(status.info_ok = lv_info_with_seg_status(seg->lv->vg->cmd, seg, &status, 0, 0)))
 		goto_bad;
 
-	ret = lvseg_kernel_discards_dup_with_info_and_seg_status(mem, &status);
+	if (!(ret = lvseg_kernel_discards_dup_with_info_and_seg_status(mem, &status)))
+		stack;
 bad:
 	dm_pool_destroy(status.seg_status.mem);