[PATCH] rmap 32 zap_pmd_range wrap
From: Hugh Dickins
Date: Sat May 08 2004 - 17:14:12 EST
From: Andrea Arcangeli <andrea@xxxxxxx>
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.
memory.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- rmap31/mm/memory.c 2004-05-08 20:55:49.588839808 +0100
+++ rmap32/mm/memory.c 2004-05-08 20:56:00.578169176 +0100
@@ -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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/