Skip to content

Commit

Permalink
score: it's "VERIFY_WRITE", not "VERFITY_WRITE"...
Browse files Browse the repository at this point in the history
... 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 <[email protected]>
  • Loading branch information
Al Viro committed Mar 28, 2017
1 parent 271abdc commit 4b4554f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/score/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4b4554f

Please sign in to comment.