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 <mingo@elte.hu>
Acked-by: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Acked-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarArjan van de Ven <arjan@linux.intel.com>
parent 2cca775b
......@@ -542,7 +542,7 @@ static int __change_page_attr(struct cpa_data *cpa, int primary)
repeat:
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