summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-04-18 21:32:22 +0200
committerIngo Molnar <mingo@elte.hu>2008-04-18 23:40:49 +0200
commitd1a4be630fb068f251d64b62919f143c49ca8057 (patch)
treefbd9727874d3377e2c2d0699fabb6c12427408a9 /arch
parent2cca775baecbfede2fec20c99add709232311fe7 (diff)
downloadlinux-3.10-d1a4be630fb068f251d64b62919f143c49ca8057.tar.gz
linux-3.10-d1a4be630fb068f251d64b62919f143c49ca8057.tar.bz2
linux-3.10-d1a4be630fb068f251d64b62919f143c49ca8057.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/mm/pageattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c
index 7d9517abc9a..f7823a17286 100644
--- a/arch/x86/mm/pageattr.c
+++ b/arch/x86/mm/pageattr.c
@@ -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)) {