From 0636699cf9d36ba1442c68d6df07c9b04bd4c156 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Sat, 12 Nov 2005 22:00:50 +0000 Subject: [PATCH] A missing vg_revert in an error path. --- tools/lvcreate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lvcreate.c b/tools/lvcreate.c index 31a8405b1..47bcc00de 100644 --- a/tools/lvcreate.c +++ b/tools/lvcreate.c @@ -761,6 +761,7 @@ static int _lvcreate(struct cmd_context *cmd, struct lvcreate_params *lp) if (!suspend_lv(cmd, org)) { log_error("Failed to suspend origin %s", org->name); + vg_revert(vg); return 0; }