projects
/
GitHub
/
moto-9609
/
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:
271abdc
)
score: it's "VERIFY_WRITE", not "VERFITY_WRITE"...
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 27 Dec 2016 19:50:40 +0000
(14:50 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 28 Mar 2017 22:23:57 +0000
(18:23 -0400)
... and the only reason it worked is that access_ok() discards the
first argument before parser even gets a chance of looking at it.
Still, no point keeping that typo.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/score/include/asm/uaccess.h
patch
|
blob
|
blame
|
history
diff --git
a/arch/score/include/asm/uaccess.h
b/arch/score/include/asm/uaccess.h
index 7a6c6982420a88107b3846da3836f051fd433b66..79125fa6ed43250497d88f1439c729cf5715c6c9 100644
(file)
--- a/
arch/score/include/asm/uaccess.h
+++ b/
arch/score/include/asm/uaccess.h
@@
-347,7
+347,7
@@
static inline unsigned long
copy_in_user(void *to, const void *from, unsigned long len)
{
if (access_ok(VERIFY_READ, from, len) &&
- access_ok(VER
FIT
Y_WRITE, to, len))
+ access_ok(VER
IF
Y_WRITE, to, len))
return __copy_tofrom_user(to, from, len);
}