All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: init_acpi_config should return rc in exit path
@ 2016-12-14 11:44 Wei Liu
  2016-12-14 11:49 ` Andrew Cooper
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Wei Liu @ 2016-12-14 11:44 UTC (permalink / raw)
  To: Xen-devel; +Cc: Ian Jackson, Wei Liu

... otherwise it returns 0 even if the function fails.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Cc: Ian Jackson <ian.jackson@eu.citrix.com>

This should be backported to 4.8.
---
 tools/libxl/libxl_x86_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libxl/libxl_x86_acpi.c b/tools/libxl/libxl_x86_acpi.c
index 686ac8e..6cf0c30 100644
--- a/tools/libxl/libxl_x86_acpi.c
+++ b/tools/libxl/libxl_x86_acpi.c
@@ -154,7 +154,7 @@ static int init_acpi_config(libxl__gc *gc,
     config->acpi_revision = 5;
 
 out:
-    return 0;
+    return rc;
 }
 
 int libxl__dom_load_acpi(libxl__gc *gc,
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-12-16 16:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 11:44 [PATCH] libxl: init_acpi_config should return rc in exit path Wei Liu
2016-12-14 11:49 ` Andrew Cooper
2016-12-14 12:28   ` Wei Liu
2016-12-16 15:10   ` Boris Ostrovsky
2016-12-16 15:16     ` Wei Liu
2016-12-16 15:21       ` Boris Ostrovsky
2016-12-16 15:20         ` Wei Liu
2016-12-16 15:42           ` Ian Jackson
2016-12-16 11:05 ` Ian Jackson
2016-12-16 11:09   ` Wei Liu
2016-12-16 16:23 ` Wei Liu
2016-12-16 16:25   ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.