mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
dlmfs_file_write(): get rid of pointless access_ok()
address passed only to copy_from_user() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3815f1be54
commit
37d59a5148
@ -291,9 +291,6 @@ static ssize_t dlmfs_file_write(struct file *filp,
|
||||
if (!count)
|
||||
return 0;
|
||||
|
||||
if (!access_ok(buf, count))
|
||||
return -EFAULT;
|
||||
|
||||
lvb_buf = kmalloc(count, GFP_NOFS);
|
||||
if (!lvb_buf)
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user