Skip to content

Commit

Permalink
x86: return -EINVAL in __change_page_attr(), instead of 0
Browse files Browse the repository at this point in the history
careful: might change driver behavior - but this is the right
return value.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 674d672 commit f5a50ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/pageattr_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ __change_page_attr(unsigned long address, struct page *page, pgprot_t prot)
repeat:
kpte = lookup_address(address, &level);
if (!kpte)
return 0;
return -EINVAL;

kpte_page = virt_to_page(kpte);
BUG_ON(PageLRU(kpte_page));
Expand Down

0 comments on commit f5a50ce

Please sign in to comment.