forked from pool/kexec-tools
26 lines
915 B
Diff
26 lines
915 B
Diff
From b4b79993adc9ac3094361900f34582e36f5de162 Mon Sep 17 00:00:00 2001
|
|
From: Bernhard Walle <bwalle@suse.de>
|
|
Date: Fri, 16 Jan 2009 18:52:29 +0100
|
|
Subject: [PATCH] [PPC64] Fix typo in realloc_memory_ranges()
|
|
|
|
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@suse.de>
|
|
|
|
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;
|
|
|