summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init_64.c
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2010-09-03 17:04:07 +0800
committerIngo Molnar <mingo@elte.hu>2010-09-03 11:40:11 +0200
commit1c5f50ee347daea013671f718b70cd6bf497bef9 (patch)
tree4deedda8660face85fdf66dc9df65894fb56ab31 /arch/x86/mm/init_64.c
parent9fbaf49c7f717740002d49eee1bbd03d89d8766a (diff)
downloadop-kernel-dev-1c5f50ee347daea013671f718b70cd6bf497bef9.zip
op-kernel-dev-1c5f50ee347daea013671f718b70cd6bf497bef9.tar.gz
x86, mm: fix uninitialized addr in kernel_physical_mapping_init()
This re-adds the lost chunk in commit 9b861528a80. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Haicheng Li <haicheng.li@linux.intel.com> Cc: Andi Kleen <ak@linux.intel.com> LKML-Reference: <20100903090407.GA19771@localhost> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r--arch/x86/mm/init_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 64e7bc2..74f0f35 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -570,6 +570,7 @@ kernel_physical_mapping_init(unsigned long start,
start = (unsigned long)__va(start);
end = (unsigned long)__va(end);
+ addr = start;
for (; start < end; start = next) {
pgd_t *pgd = pgd_offset_k(start);
OpenPOWER on IntegriCloud