Skip to contentSkip to conversation

x86: early_ioremap_reset fix

PATCH Applied Huang, Ying 2 participants 2 messages Jan 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/6 x86: early_ioremap_reset fix

This patch fixes a bug of early_ioremap_reset.

---
 arch/x86/mm/ioremap_32.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/ioremap_32.c +1 -1
@@ -285,7 +285,7 @@ void __init early_ioremap_reset(void)
 	pte_t *pte;
 
 	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_present(*pte)) {
Applied
#1 lore raw
Quoted 11 lines · Huang, Ying

This patch fixes a bug of early_ioremap_reset.

---
 arch/x86/mm/ioremap_32.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

arch/x86/mm/ioremap_32.c void __init early_ioremap_reset(void) · line 289

Quoted 6 lines
arch/x86/mm/ioremap_32.c +1 -1
@@ -285,7 +285,7 @@ void __init early_ioremap_reset(void)
 	pte_t *pte;
 
 	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);

thanks, applied.

Ingo