Skip to contentSkip to conversation

master - lvconvert: use proper error path

PATCH Zdenek Kabelac 1 participant 1 message Jul 3, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=eeb164b50f9e5e5ce39f7851fced7c29e1fc0202
Commit:        eeb164b50f9e5e5ce39f7851fced7c29e1fc0202
Parent:        fe09d84668487f2a6b64edccced1ed049cc9ac18
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Jul 2 23:59:52 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Jul 3 14:44:51 2013 +0200

lvconvert: use proper error path

VG needs to be released in this error path

---
 tools/lvconvert.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/lvconvert.c +1 -1
index 4d2a432..ccc8420 100644
@@ -2413,7 +2413,7 @@ static int lvconvert_single(struct cmd_context *cmd, struct lvconvert_params *lp
 			     &lp->passed_args, &lp->chunk_size,
 			     &lp->discards, &lp->poolmetadata_size,
 			     &lp->zero))
-		goto_out;
+		goto_bad;
 
 	/*
 	 * lp->pvh holds the list of PVs available for allocation or removal