File e039a830-fix-qemuProcessSEVCreateFile-retval.patch of Package libvirt.22293

commit e039a83064d65ba0b4efa637691586873cb8dc2a
Author: Luyao Huang <lhuang@redhat.com>
Date:   Wed Jun 20 17:05:02 2018 +0800

    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>

Index: libvirt-4.0.0/src/qemu/qemu_process.c
===================================================================
--- libvirt-4.0.0.orig/src/qemu/qemu_process.c
+++ libvirt-4.0.0/src/qemu/qemu_process.c
@@ -5599,6 +5599,7 @@ qemuProcessSEVCreateFile(const char *con
         goto cleanup;
     }
 
+    ret = 0;
  cleanup:
     VIR_FREE(configFile);
     return ret;
openSUSE Build Service is sponsored by