|
@@ -769,6 +769,9 @@ resizefs_out:
|
|
#ifdef CONFIG_EXT4_FS_ENCRYPTION
|
|
#ifdef CONFIG_EXT4_FS_ENCRYPTION
|
|
struct fscrypt_policy policy;
|
|
struct fscrypt_policy policy;
|
|
|
|
|
|
|
|
+ if (!ext4_has_feature_encrypt(sb))
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
+
|
|
if (copy_from_user(&policy,
|
|
if (copy_from_user(&policy,
|
|
(struct fscrypt_policy __user *)arg,
|
|
(struct fscrypt_policy __user *)arg,
|
|
sizeof(policy)))
|
|
sizeof(policy)))
|