[pve-devel] [PATCH v2 qemu 1/6] PVE: fixup: drop CoMutex on error return

Stefan Reiter s.reiter at proxmox.com
Thu Oct 29 14:10:31 CET 2020


Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---

v2: new

 pve-backup.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pve-backup.c b/pve-backup.c
index 53cf23ed5a..13a69f9c5a 100644
--- a/pve-backup.c
+++ b/pve-backup.c
@@ -561,8 +561,9 @@ static void coroutine_fn pvebackup_co_prepare(void *opaque)
     const char *firewall_name = "qemu-server.fw";
 
     if (backup_state.di_list) {
-         error_set(task->errp, ERROR_CLASS_GENERIC_ERROR,
+        error_set(task->errp, ERROR_CLASS_GENERIC_ERROR,
                   "previous backup not finished");
+        qemu_co_mutex_unlock(&backup_state.backup_mutex);
         return;
     }
 
-- 
2.20.1






More information about the pve-devel mailing list