|
|
3e5111 |
From e2f2737b6f9aa4ba8399e87e2eecbfbc77f9b2a4 Mon Sep 17 00:00:00 2001
|
|
|
3e5111 |
Message-Id: <e2f2737b6f9aa4ba8399e87e2eecbfbc77f9b2a4@dist-git>
|
|
|
3e5111 |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
3e5111 |
Date: Tue, 4 Apr 2017 12:46:37 +0200
|
|
|
3e5111 |
Subject: [PATCH] qemu: Break endless loop if qemuMigrationResetTLS fails
|
|
|
3e5111 |
|
|
|
3e5111 |
Jumping to "endjob" label from a code after this label is not a very
|
|
|
3e5111 |
good idea.
|
|
|
3e5111 |
|
|
|
3e5111 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
3e5111 |
(cherry picked from commit d658c8594e05d286de6af22ea88689d1d5e2a82b)
|
|
|
3e5111 |
|
|
|
3e5111 |
https://bugzilla.redhat.com/show_bug.cgi?id=1300769
|
|
|
3e5111 |
|
|
|
3e5111 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
3e5111 |
---
|
|
|
3e5111 |
src/qemu/qemu_migration.c | 4 +---
|
|
|
3e5111 |
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
3e5111 |
|
|
|
3e5111 |
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
|
|
|
3e5111 |
index fcd3a38a1..992b6bd4a 100644
|
|
|
3e5111 |
--- a/src/qemu/qemu_migration.c
|
|
|
3e5111 |
+++ b/src/qemu/qemu_migration.c
|
|
|
3e5111 |
@@ -5356,9 +5356,7 @@ qemuMigrationFinish(virQEMUDriverPtr driver,
|
|
|
3e5111 |
QEMU_ASYNC_JOB_MIGRATION_IN);
|
|
|
3e5111 |
}
|
|
|
3e5111 |
|
|
|
3e5111 |
- if (qemuMigrationResetTLS(driver, vm, QEMU_ASYNC_JOB_MIGRATION_IN,
|
|
|
3e5111 |
- NULL, NULL) < 0)
|
|
|
3e5111 |
- goto endjob;
|
|
|
3e5111 |
+ qemuMigrationResetTLS(driver, vm, QEMU_ASYNC_JOB_MIGRATION_IN, NULL, NULL);
|
|
|
3e5111 |
|
|
|
3e5111 |
qemuMigrationJobFinish(driver, vm);
|
|
|
3e5111 |
if (!virDomainObjIsActive(vm))
|
|
|
3e5111 |
--
|
|
|
3e5111 |
2.12.2
|
|
|
3e5111 |
|