From: Huang, Ying Date: Wed, 30 Jan 2008 12:33:44 +0000 (+0100) Subject: x86: early_ioremap_reset fix X-Git-Tag: v2.6.25-rc1~1143^2~129 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64a8f852a20e90bf3018d3ace5b7f514f39db4cd;p=linux-2.6 x86: early_ioremap_reset fix This patch fixes a bug of early_ioremap_reset. Signed-off-by: Huang Ying Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/ioremap_32.c b/arch/x86/mm/ioremap_32.c index 43b5e9fd63..bfd7b8b2fe 100644 --- a/arch/x86/mm/ioremap_32.c +++ b/arch/x86/mm/ioremap_32.c @@ -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) {