diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:03 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:34:03 -0500 |
commit | f5a50ce1bf53a07cb7d0bab1a87e62cc4f34f0ab (patch) | |
tree | 0fd0b5e96043070e2144a0785c5f89083e63d723 /arch/x86/mm/pageattr_64.c | |
parent | 674d67269e79f6697c3480363b28c9b9934fa60c (diff) |
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 <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm/pageattr_64.c')
-rw-r--r-- | 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 60cfb687f97c..4053832d4108 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) | |||
135 | repeat: | 135 | repeat: |
136 | kpte = lookup_address(address, &level); | 136 | kpte = lookup_address(address, &level); |
137 | if (!kpte) | 137 | if (!kpte) |
138 | return 0; | 138 | return -EINVAL; |
139 | 139 | ||
140 | kpte_page = virt_to_page(kpte); | 140 | kpte_page = virt_to_page(kpte); |
141 | BUG_ON(PageLRU(kpte_page)); | 141 | BUG_ON(PageLRU(kpte_page)); |