Signed-off-by: Simon Horman Index: kexec-tools/kexec/arch/x86_64/crashdump-x86_64.c =================================================================== --- kexec-tools.orig/kexec/arch/x86_64/crashdump-x86_64.c 2010-02-01 23:07:20.000000000 +1100 +++ kexec-tools/kexec/arch/x86_64/crashdump-x86_64.c 2010-02-01 23:07:21.000000000 +1100 @@ -286,7 +286,7 @@ static int get_crash_memory_ranges(struc static int exclude_region(int *nr_ranges, uint64_t start, uint64_t end) { int i, j, tidx = -1; - struct memory_range temp_region; + struct memory_range temp_region = { 0, 0, 0 }; for (i = 0; i < (*nr_ranges); i++) { unsigned long long mstart, mend; @@ -385,7 +385,7 @@ static int delete_memmap(struct memory_r { int i, j, nr_entries = 0, tidx = -1, operation = 0, align = 1024; unsigned long long mstart, mend; - struct memory_range temp_region; + struct memory_range temp_region = { 0, 0, 0 }; /* Do alignment check. */ if ((addr%align) || (size%align))