Skip to content

Commit

Permalink
x86 PAT: fix mmap() of holes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Ingo Molnar committed Apr 18, 2008
1 parent 2cca775 commit d1a4be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d1a4be6

Please sign in to comment.