[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Propagate error return from elf_xen_parse().



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1171549558 0
# Node ID 96d08345f1c51160a6625b102907192734e47f40
# Parent  1f5e6fb9c652500a9ba032ab25a7dc5b258f8b3d
Propagate error return from elf_xen_parse().
From: Jan Beulich <jbeulich@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/domain_build.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 1f5e6fb9c652 -r 96d08345f1c5 xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       Thu Feb 15 14:24:11 2007 +0000
+++ b/xen/arch/x86/domain_build.c       Thu Feb 15 14:25:58 2007 +0000
@@ -262,13 +262,13 @@ int construct_dom0(struct domain *d,
 
     nr_pages = compute_dom0_nr_pages();
 
-    if (0 != (rc = elf_init(&elf, image_start, image_len)))
+    if ( (rc = elf_init(&elf, image_start, image_len)) != 0 )
         return rc;
 #ifdef VERBOSE
     elf_set_verbose(&elf);
 #endif
     elf_parse_binary(&elf);
-    if (0 != (elf_xen_parse(&elf, &parms)))
+    if ( (rc = elf_xen_parse(&elf, &parms)) != 0 )
         return rc;
 
     /* compatibility check */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.