summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-04-23 19:52:23 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-09 21:54:58 +0200
commit37d59a5148a2746555c02e10b9fb70038afd3ca7 (patch)
tree22720d2ce34e38707133af3bad54e108f15cb777 /fs/ocfs2/dlmfs
parentdlmfs_file_write(): fix the bogosity in handling non-zero *ppos (diff)
downloadlinux-37d59a5148a2746555c02e10b9fb70038afd3ca7.tar.xz
linux-37d59a5148a2746555c02e10b9fb70038afd3ca7.zip
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>
Diffstat (limited to 'fs/ocfs2/dlmfs')
-rw-r--r--fs/ocfs2/dlmfs/dlmfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c
index 1de77f1a600b..a06f19b67d3b 100644
--- a/fs/ocfs2/dlmfs/dlmfs.c
+++ b/fs/ocfs2/dlmfs/dlmfs.c
@@ -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;