]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
score: it's "VERIFY_WRITE", not "VERFITY_WRITE"...
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 27 Dec 2016 19:50:40 +0000 (14:50 -0500)
committerAl 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

index 7a6c6982420a88107b3846da3836f051fd433b66..79125fa6ed43250497d88f1439c729cf5715c6c9 100644 (file)
@@ -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(VERFITY_WRITE, to, len))
+                     access_ok(VERIFY_WRITE, to, len))
                return __copy_tofrom_user(to, from, len);
 }