mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: process: Fix the return value in qemuProcessSEVCreateFile
When commit 6718132d
enforced usage of the cleanup label, it forgot to
set the @ret variable to 0 on "success" exit path.
Signed-off-by: Luyao Huang <lhuang@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
6d490ed0d8
commit
e039a83064
@ -5842,6 +5842,7 @@ qemuProcessSEVCreateFile(const char *configDir,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
cleanup:
|
||||
VIR_FREE(configFile);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user