x86: Fix kexec reservation
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 19 May 2008 08:43:42 +0000 (09:43 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 19 May 2008 08:43:42 +0000 (09:43 +0100)
The reservation of space for the kexec area in
kexec_reserve_area is incorrect. It specifies the
start address and size to reserve_e820_mem when
the args should be start and end.

Bug found and fixed by Dave Anderson.

Signed-off-by: Bill Burns <bburns@redhat.com>
xen/arch/x86/setup.c

index 03b56119877f4c1c33b7a559646d2ae129d2e894..bdf3866e012a260dbd8f037408df8c30992e14d2 100644 (file)
@@ -362,7 +362,7 @@ void __init kexec_reserve_area(struct e820map *e820)
 
     is_reserved = 1;
 
-    if ( !reserve_e820_ram(e820, kdump_start, kdump_size) )
+    if ( !reserve_e820_ram(e820, kdump_start, kdump_start + kdump_size) )
     {
         printk("Kdump: DISABLED (failed to reserve %luMB (%lukB) at 0x%lx)"
                "\n", kdump_size >> 20, kdump_size >> 10, kdump_start);