summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ioctl.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-06-08 12:23:21 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-06-08 12:23:21 -0400
commitb4ab9e29820bf2e8842281a6b5e645e59c9992a5 (patch)
tree49e3d62e9a29578874ad35dcb7d5b38a119e3743 /fs/ext4/ioctl.c
parent8bc3b1e6e8fdc1c605c06c027d999b5cca434779 (diff)
downloadop-kernel-dev-b4ab9e29820bf2e8842281a6b5e645e59c9992a5.zip
op-kernel-dev-b4ab9e29820bf2e8842281a6b5e645e59c9992a5.tar.gz
ext4 crypto: fix sparse warnings in fs/ext4/ioctl.c
[ Added another sparse fix for EXT4_IOC_GET_ENCRYPTION_POLICY while we're at it. --tytso ] Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ioctl.c')
-rw-r--r--fs/ext4/ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index 2cb9e17..7ce8582 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -675,8 +675,8 @@ encryption_policy_out:
if (err)
return err;
}
- if (copy_to_user((void *) arg, sbi->s_es->s_encrypt_pw_salt,
- 16))
+ if (copy_to_user((void __user *) arg,
+ sbi->s_es->s_encrypt_pw_salt, 16))
return -EFAULT;
return 0;
}
@@ -690,7 +690,7 @@ encryption_policy_out:
err = ext4_get_policy(inode, &policy);
if (err)
return err;
- if (copy_to_user((void *)arg, &policy, sizeof(policy)))
+ if (copy_to_user((void __user *)arg, &policy, sizeof(policy)))
return -EFAULT;
return 0;
#else
OpenPOWER on IntegriCloud