diff options
author | Andrew Morton <akpm@osdl.org> | 2004-05-22 08:08:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-22 08:08:54 -0700 |
commit | 5911438d73c0125366299c87d767ff11b0eeb16f (patch) | |
tree | df01240d3a622c84d380dc5f3441d8b0cc118976 /mm | |
parent | 68c45e43edd7ab46c15a3058c3d1f43e08a3c2d9 (diff) | |
download | history-5911438d73c0125366299c87d767ff11b0eeb16f.tar.gz |
[PATCH] rmap 32 zap_pmd_range wrap
From: Hugh Dickins <hugh@veritas.com>
From: Andrea Arcangeli <andrea@suse.de>
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.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index 5d80b056dc58ae..7e77374e4b8cb5 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -449,7 +449,7 @@ static void zap_pmd_range(struct mmu_gather *tlb, 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, |