Commit d1a4be63 authored by Ingo Molnar's avatar Ingo Molnar

x86 PAT: fix mmap() of holes

do not return a -EINVAL when mmap()-ing PCI holes.
Signed-off-by: default avatarIngo Molnar <>
Acked-by: default avatarVenkatesh Pallipadi <>
Acked-by: default avatarSuresh Siddha <>
Acked-by: default avatarH. Peter Anvin <>
Acked-by: default avatarThomas Gleixner <>
Acked-by: default avatarArjan van de Ven <>
parent 2cca775b
......@@ -542,7 +542,7 @@ static int __change_page_attr(struct cpa_data *cpa, int primary)
kpte = lookup_address(address, &level);
if (!kpte)
return primary ? -EINVAL : 0;
return 0;
old_pte = *kpte;
if (!pte_val(old_pte)) {
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