diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2010-09-03 05:04:07 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-09-03 05:40:11 -0400 |
commit | 1c5f50ee347daea013671f718b70cd6bf497bef9 (patch) | |
tree | 4deedda8660face85fdf66dc9df65894fb56ab31 /arch/x86/mm | |
parent | 9fbaf49c7f717740002d49eee1bbd03d89d8766a (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/x86/mm')
-rw-r--r-- | arch/x86/mm/init_64.c | 1 |
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, | |||
570 | 570 | ||
571 | start = (unsigned long)__va(start); | 571 | start = (unsigned long)__va(start); |
572 | end = (unsigned long)__va(end); | 572 | end = (unsigned long)__va(end); |
573 | addr = start; | ||
573 | 574 | ||
574 | for (; start < end; start = next) { | 575 | for (; start < end; start = next) { |
575 | pgd_t *pgd = pgd_offset_k(start); | 576 | pgd_t *pgd = pgd_offset_k(start); |