diff options
author | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2010-02-02 14:42:02 +1100 |
commit | 77ee5cf2143417ca19c1dd981abcd016579f0cd9 (patch) | |
tree | ca41386a245a4aa46a8e77777dedc0a4c5837b76 | |
parent | 563ee341d950f2fae0ba6608d70c19eb647ff943 (diff) |
x86_64: initialise temp_region in exclude_region() and delete_memmap()
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/x86_64/crashdump-x86_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/x86_64/crashdump-x86_64.c b/kexec/arch/x86_64/crashdump-x86_64.c index bb14e0d..b6b410b 100644 --- a/kexec/arch/x86_64/crashdump-x86_64.c +++ b/kexec/arch/x86_64/crashdump-x86_64.c @@ -286,7 +286,7 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges, 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_range *memmap_p, unsigned long long addr, { 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)) |