projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3815f1b
)
dlmfs_file_write(): get rid of pointless access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 23 Apr 2020 17:52:23 +0000
(13:52 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 9 May 2020 19:54:58 +0000
(15:54 -0400)
address passed only to copy_from_user()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/dlmfs/dlmfs.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/dlmfs/dlmfs.c
b/fs/ocfs2/dlmfs/dlmfs.c
index 1de77f1a600b20eac9414fd2d4716396b97de101..a06f19b67d3bc71af304f7047aab379c6eaba565 100644
(file)
--- 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;