From: Ingo Molnar Date: Wed, 30 Jan 2008 12:34:03 +0000 (+0100) Subject: x86: return -EINVAL in __change_page_attr(), instead of 0 X-Git-Tag: v3.12-rc1~24034^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5a50ce1bf53a07cb7d0bab1a87e62cc4f34f0ab;p=kernel%2Fkernel-generic.git x86: return -EINVAL in __change_page_attr(), instead of 0 careful: might change driver behavior - but this is the right return value. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/pageattr_64.c b/arch/x86/mm/pageattr_64.c index 60cfb68..4053832d 100644 --- a/arch/x86/mm/pageattr_64.c +++ b/arch/x86/mm/pageattr_64.c @@ -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));