[PATCH] [PPC64] Fix typo in realloc_memory_ranges()

Bernhard Walle bwalle at suse.de
Fri Jan 16 13:11:23 EST 2009


The base_memory_range should not become memory_range. We need to realloc
base_memory_range to not change the contents of memory. That was a copy & paste
error.


Signed-off-by: Bernhard Walle <bwalle at suse.de>
---
 kexec/arch/ppc64/kexec-ppc64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c
index d8347f1..b0d8acd 100644
--- a/kexec/arch/ppc64/kexec-ppc64.c
+++ b/kexec/arch/ppc64/kexec-ppc64.c
@@ -107,7 +107,7 @@ static int realloc_memory_ranges(void)
 	if (!memory_range)
 		goto err;
 
-	base_memory_range = (struct memory_range *) realloc(memory_range, memory_range_len);
+	base_memory_range = (struct memory_range *) realloc(base_memory_range, memory_range_len);
 	if (!base_memory_range)
 		goto err;
 
-- 
1.6.0.2




More information about the kexec mailing list