Commit d1a4be630fb068f251d64b62919f143c49ca8057

Authored by Ingo Molnar
1 parent 2cca775bae

x86 PAT: fix mmap() of holes

do not return a -EINVAL when mmap()-ing PCI holes.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/x86/mm/pageattr.c
... ... @@ -542,7 +542,7 @@
542 542 repeat:
543 543 kpte = lookup_address(address, &level);
544 544 if (!kpte)
545   - return primary ? -EINVAL : 0;
  545 + return 0;
546 546  
547 547 old_pte = *kpte;
548 548 if (!pte_val(old_pte)) {