Commit bdd3cee2 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86: ioremap(), extend check to all RAM pages

Suggested by Jan Beulich.

Signed-off-by: default avatarIngo Molnar <>
Acked-by: default avatarJan Beulich <>
parent b089c12b
......@@ -146,8 +146,9 @@ static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
* Don't allow anybody to remap normal RAM that we're using..
for (pfn = phys_addr >> PAGE_SHIFT; pfn < max_pfn_mapped &&
for (pfn = phys_addr >> PAGE_SHIFT;
(pfn << PAGE_SHIFT) < last_addr; pfn++) {
if (page_is_ram(pfn) && pfn_valid(pfn) &&
return NULL;
Supports Markdown
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