From: Keir Fraser Date: Mon, 19 May 2008 08:43:42 +0000 (+0100) Subject: x86: Fix kexec reservation X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14212^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e70a0fa88c8efea5e2793decaafa8c404b5bd079;p=xen.git x86: Fix kexec reservation 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 --- diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index 03b5611987..bdf3866e01 100644 --- a/xen/arch/x86/setup.c +++ b/xen/arch/x86/setup.c @@ -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);