Commit 37d59a51 authored by Al Viro's avatar Al Viro

dlmfs_file_write(): get rid of pointless access_ok()

address passed only to copy_from_user()
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 3815f1be
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment