From: Ingo Molnar Date: Fri, 18 Apr 2008 19:32:22 +0000 (+0200) Subject: x86 PAT: fix mmap() of holes X-Git-Tag: v2.6.26-rc1~1139 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d1a4be630fb068f251d64b62919f143c49ca8057;p=linux-2.6-omap-h63xx.git x86 PAT: fix mmap() of holes do not return a -EINVAL when mmap()-ing PCI holes. Signed-off-by: Ingo Molnar Acked-by: Venkatesh Pallipadi Acked-by: Suresh Siddha Acked-by: H. Peter Anvin Acked-by: Thomas Gleixner Acked-by: Arjan van de Ven --- 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)) {