Skip to content

Commit

Permalink
x86: early_ioremap_reset fix
Browse files Browse the repository at this point in the history
This patch fixes a bug of early_ioremap_reset.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Huang, Ying authored and Ingo Molnar committed Jan 30, 2008
1 parent beacfaa commit 64a8f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/ioremap_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void __init early_ioremap_reset(void)
unsigned long *pte, phys, addr;

after_paging_init = 1;
for (idx = FIX_BTMAP_BEGIN; idx <= FIX_BTMAP_END; idx--) {
for (idx = FIX_BTMAP_BEGIN; idx >= FIX_BTMAP_END; idx--) {
addr = fix_to_virt(idx);
pte = early_ioremap_pte(addr);
if (!*pte & _PAGE_PRESENT) {
Expand Down

0 comments on commit 64a8f85

Please sign in to comment.