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 <[email protected]>
---
 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


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to