WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Propagate error return from elf_xen_parse().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Feb 2007 12:15:26 -0800
Delivery-date: Fri, 16 Feb 2007 12:16:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Propagate error return from elf_xen_parse()., Xen patchbot-unstable <=