projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a0e75a
)
xtensa: fix prefetch in the raw_copy_to_user
author
Max Filippov
<jcmvbkbc@gmail.com>
Tue, 4 Apr 2017 20:26:29 +0000
(13:26 -0700)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 4 Apr 2017 20:53:13 +0000
(16:53 -0400)
'from' is the input buffer, it should be prefetched with prefetch, not
prefetchw.
Tested-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/xtensa/include/asm/uaccess.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/xtensa/include/asm/uaccess.h
b/arch/xtensa/include/asm/uaccess.h
index 8e93ed8ad1fe31131eb9b9b512b84f1964c85e8a..2e7bac0d4b2cbd58fc3f7749ed2fc4b45920db9f 100644
(file)
--- a/
arch/xtensa/include/asm/uaccess.h
+++ b/
arch/xtensa/include/asm/uaccess.h
@@
-245,7
+245,7
@@
raw_copy_from_user(void *to, const void __user *from, unsigned long n)
static inline unsigned long
raw_copy_to_user(void __user *to, const void *from, unsigned long n)
{
- prefetch
w
(from);
+ prefetch(from);
return __xtensa_copy_user((__force void *)to, from, n);
}
#define INLINE_COPY_FROM_USER