diff options
Diffstat (limited to 'kernel/fs/ext4/ioctl.c')
-rw-r--r-- | kernel/fs/ext4/ioctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/fs/ext4/ioctl.c b/kernel/fs/ext4/ioctl.c index 5e872fd40..1fb12f9c9 100644 --- a/kernel/fs/ext4/ioctl.c +++ b/kernel/fs/ext4/ioctl.c @@ -629,7 +629,13 @@ resizefs_out: goto encryption_policy_out; } + err = mnt_want_write_file(filp); + if (err) + goto encryption_policy_out; + err = ext4_process_policy(&policy, inode); + + mnt_drop_write_file(filp); encryption_policy_out: return err; #else |