[PATCH] qemuDomainRename: Don't leave a domain locked uppon fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, yet again one case of 'goto cleanup' while 'goto endjob'
was needed. Sorry.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---

Pushed as trivial.

 src/qemu/qemu_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 180dd88..99a3817 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -19943,7 +19943,7 @@ static int qemuDomainRename(virDomainPtr dom,
     if (STREQ(vm->def->name, new_name)) {
         virReportError(VIR_ERR_OPERATION_INVALID, "%s",
                        _("Can't rename domain to itself"));
-        goto cleanup;
+        goto endjob;
     }
 
     if (VIR_STRDUP(new_dom_name, new_name) < 0)
-- 
2.4.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]