Fix typo in realloc_memory_ranges()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- kexec/arch/ppc64/kexec-ppc64.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kexec/arch/ppc64/kexec-ppc64.c +1 -1
@@ -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;
Signature · 7 lines
1.6.0.2 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 3 lines · Bernhard Walle
The
base_memory_rangeshould not becomememory_range. We need to reallocbase_memory_rangeto not change the contents of memory. That was a copy & paste error.
Thanks, applied.
Signature · 9 lines
Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec