mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-03 12:55:45 +00:00
qemu_process: fix crash in qemuSaveImageDecompressionStart
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: 2f3e582a1a
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>
This commit is contained in:
parent
abb6906260
commit
4f4a8dce94
@ -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
|
/* No cookie means libvirt which saved the domain was too old to mess up
|
||||||
* the CPU definitions.
|
* the CPU definitions.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user