]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu_process: fix crash in qemuSaveImageDecompressionStart
authorPavel Hrdina <phrdina@redhat.com>
Fri, 3 Nov 2023 13:03:55 +0000 (14:03 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 3 Nov 2023 13:17:06 +0000 (14:17 +0100)
Commit changing the code to allow passing NULL as @data into
qemuSaveImageDecompressionStart() was not correct as it left the
original call into the function as well.

Introduced-by: 2f3e582a1ac1008eba8d43c751cdba8712dd1614
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2247754
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c

index 1ef032dbd2407b0c4c9c6936a0c71b3a20be654f..b9267d86994fec3f847f50cf8553c8041ddd51b6 100644 (file)
@@ -8208,9 +8208,6 @@ qemuProcessStartWithMemoryState(virConnectPtr conn,
         }
     }
 
-    if (qemuSaveImageDecompressionStart(data, fd, &intermediatefd, &errbuf, &cmd) < 0)
-        return -1;
-
     /* No cookie means libvirt which saved the domain was too old to mess up
      * the CPU definitions.
      */