Commit 5911438d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent 68c45e43
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment