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.ostrov...@oracle.com> Signed-off-by: Wei Liu <wei.l...@citrix.com> --- Cc: Boris Ostrovsky <boris.ostrov...@oracle.com> Cc: Ian Jackson <ian.jack...@eu.citrix.com> Please squash this with "libxl: init_acpi_config should return rc in exit path" when backporting to 4.8. --- tools/libxl/libxl_x86_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl_x86_acpi.c b/tools/libxl/libxl_x86_acpi.c index 6cf0c30..173188f 100644 --- a/tools/libxl/libxl_x86_acpi.c +++ b/tools/libxl/libxl_x86_acpi.c @@ -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; } -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel