projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
674d672
)
x86: return -EINVAL in __change_page_attr(), instead of 0
author
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:34:03 +0000
(13:34 +0100)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 30 Jan 2008 12:34:03 +0000
(13:34 +0100)
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>
arch/x86/mm/pageattr_64.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/mm/pageattr_64.c
b/arch/x86/mm/pageattr_64.c
index 60cfb687f97cb4117dd47b90ba9f000fc4625d96..4053832d4108419ac50effd4c7d8b780eb54eaf7 100644
(file)
--- 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));