mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 17:41:29 +00:00
score: it's "VERIFY_WRITE", not "VERFITY_WRITE"...
... 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>
This commit is contained in:
parent
271abdc367
commit
4b4554f6d5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user