Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f5a50ce1bf53a07cb7d0bab1a87e62cc4f34f0ab Commit: f5a50ce1bf53a07cb7d0bab1a87e62cc4f34f0ab Parent: 674d67269e79f6697c3480363b28c9b9934fa60c Author: Ingo Molnar <[EMAIL PROTECTED]> AuthorDate: Wed Jan 30 13:34:03 2008 +0100 Committer: Ingo Molnar <[EMAIL PROTECTED]> CommitDate: Wed Jan 30 13:34:03 2008 +0100
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 <[EMAIL PROTECTED]> Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]> --- arch/x86/mm/pageattr_64.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/mm/pageattr_64.c b/arch/x86/mm/pageattr_64.c index 60cfb68..4053832 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)); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html