# HG changeset patch
# User Jimi Xenidis <[EMAIL PROTECTED]>
# Node ID d16b31d3998a29adeea7bb6f892636181ae6eaf4
# Parent  da9637bef06ae6b7d72dc7a1cbcff11276395df3
[POWEPRC] find_space returns garbage

Based-on-patch-by: Amos Waterland <[EMAIL PROTECTED]>
Signed-off-by: Jimi Xenidis <[EMAIL PROTECTED]>
---
 xen/arch/powerpc/boot_of.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r da9637bef06a -r d16b31d3998a xen/arch/powerpc/boot_of.c
--- a/xen/arch/powerpc/boot_of.c        Thu Aug 17 17:58:07 2006 -0400
+++ b/xen/arch/powerpc/boot_of.c        Thu Aug 17 19:03:06 2006 -0400
@@ -700,7 +700,8 @@ static ulong find_space(u32 size, u32 al
     ulong eomem = ((u64)map->length_high << 32) | (u64)map->length_low;
     ulong base;
 
-    if (size == 0) return base;
+    if (size == 0)
+        return 0;
 
     if (align == 0)
         of_panic("cannot call %s() with align of 0\n", __func__);

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to