summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/move_extents.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-04-13 01:52:19 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2012-05-30 05:28:35 +0200
commitf6a5690324d5ab9c33bbc0a6b4cc59c7fa34eeec (patch)
tree8ae239168609f06a9bba78058e7f7e3fa18c20d9 /fs/ocfs2/move_extents.c
parentocfs2: trivial endianness misannotations (diff)
downloadlinux-f6a5690324d5ab9c33bbc0a6b4cc59c7fa34eeec.tar.xz
linux-f6a5690324d5ab9c33bbc0a6b4cc59c7fa34eeec.zip
ocfs2: deal with __user misannotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ocfs2/move_extents.c')
-rw-r--r--fs/ocfs2/move_extents.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/ocfs2/move_extents.c b/fs/ocfs2/move_extents.c
index b1e3fce72ea4..6083432f667e 100644
--- a/fs/ocfs2/move_extents.c
+++ b/fs/ocfs2/move_extents.c
@@ -1082,8 +1082,7 @@ int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp)
context->file = filp;
if (argp) {
- if (copy_from_user(&range, (struct ocfs2_move_extents *)argp,
- sizeof(range))) {
+ if (copy_from_user(&range, argp, sizeof(range))) {
status = -EFAULT;
goto out;
}
@@ -1138,8 +1137,7 @@ out:
* length and new_offset even if failure happens somewhere.
*/
if (argp) {
- if (copy_to_user((struct ocfs2_move_extents *)argp, &range,
- sizeof(range)))
+ if (copy_to_user(argp, &range, sizeof(range)))
status = -EFAULT;
}