libxl: set rc to 0 in init_acpi_config in success path
authorWei Liu <wei.liu2@citrix.com>
Fri, 16 Dec 2016 15:51:33 +0000 (15:51 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 16 Dec 2016 16:21:43 +0000 (16:21 +0000)
xc_doamin_getinfo returns >=0 in success path, and if there is no vnode
configured, that rc will be returned to caller, which indicates error.

Fix that by setting rc to 0 in success path.

Reported-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
tools/libxl/libxl_x86_acpi.c

index 6cf0c304d54d6ab0408cee848983f99a915da113..173188f73e5a385390d9ddb63a1632a438c959dd 100644 (file)
@@ -153,6 +153,7 @@ static int init_acpi_config(libxl__gc *gc,
     config->lapic_id = acpi_lapic_id;
     config->acpi_revision = 5;
 
+    rc = 0;
 out:
     return rc;
 }