]> Git Repo - linux.git/commitdiff
x86 PAT: fix mmap() of holes
authorIngo Molnar <[email protected]>
Fri, 18 Apr 2008 19:32:22 +0000 (21:32 +0200)
committerIngo Molnar <[email protected]>
Fri, 18 Apr 2008 21:40:49 +0000 (23:40 +0200)
do not return a -EINVAL when mmap()-ing PCI holes.

Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Venkatesh Pallipadi <[email protected]>
Acked-by: Suresh Siddha <[email protected]>
Acked-by: H. Peter Anvin <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Acked-by: Arjan van de Ven <[email protected]>
arch/x86/mm/pageattr.c

index 7d9517abc9af500fc91c7a3f79b397c8e60dd328..f7823a17286838d016985c3c3bb9885c08982c95 100644 (file)
@@ -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)) {
This page took 0.057441 seconds and 4 git commands to generate.