Skip to contentSkip to conversation

rmap 32 zap_pmd_range wrap

PATCH In review [email protected] 1 participant 1 message May 22, 2004

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

PATCH 48/57 rmap 32 zap_pmd_range wrap

From: Hugh Dickins <[email protected]>

From: Andrea Arcangeli <[email protected]>

zap_pmd_range, alone of all those page_range loops, lacks the check for whether address wrapped. Hugh is in doubt as to whether this makes any difference to any config on any arch, but eager to fix the odd one out.

---

 25-akpm/mm/memory.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
mm/memory.c renamed from mm/memory.c~rmap-32-zap_pmd_range-wrap +1 -1
diff -puN mm/memory.c~rmap-32-zap_pmd_range-wrap mm/memory.c
@@ -449,7 +449,7 @@ static void zap_pmd_range(struct mmu_gat
 		zap_pte_range(tlb, pmd, address, end - address, details);
 		address = (address + PMD_SIZE) & PMD_MASK; 
 		pmd++;
-	} while (address < end);
+	} while (address && (address < end));
 }
 
 static void unmap_page_range(struct mmu_gather *tlb,

_
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>