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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;