summaryrefslogtreecommitdiff
path: root/arch
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
parent9fbaf49c7f717740002d49eee1bbd03d89d8766a (diff)
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')
-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 64e7bc2ded93..74f0f358b07b 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);