[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] libxl: set rc to 0 in init_acpi_config in success path
commit 08ccb46924385c833bd0da9e087fb6b96fa76849 Author: Wei Liu <wei.liu2@xxxxxxxxxx> AuthorDate: Fri Dec 16 15:51:33 2016 +0000 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Fri Dec 16 16:21:43 2016 +0000 libxl: set rc to 0 in init_acpi_config in success path 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@xxxxxxxxxx> Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> Tested-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> --- 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; } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |