1 ext4 crypto: fix sparse warnings in fs/ext4/ioctl.c
3 From: Fabian Frederick <fabf@skynet.be>
5 [ Added another sparse fix for EXT4_IOC_GET_ENCRYPTION_POLICY while
8 Signed-off-by: Fabian Frederick <fabf@skynet.be>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
11 fs/ext4/ioctl.c | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
14 diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
15 index 2cb9e17..7ce8582 100644
18 @@ -675,8 +675,8 @@ encryption_policy_out:
22 - if (copy_to_user((void *) arg, sbi->s_es->s_encrypt_pw_salt,
24 + if (copy_to_user((void __user *) arg,
25 + sbi->s_es->s_encrypt_pw_salt, 16))
29 @@ -690,7 +690,7 @@ encryption_policy_out:
30 err = ext4_get_policy(inode, &policy);
33 - if (copy_to_user((void *)arg, &policy, sizeof(policy)))
34 + if (copy_to_user((void __user *)arg, &policy, sizeof(policy)))