add patch prevent-ext4_quota_write-from-failing
[ext4-patch-queue.git] / release-crypto-resource-on-module-exit
blob402db39f2b8d2afd02bdb9931c025241314d3c70
1 ext4 crypto: release crypto resource on module exit
3 From: Chao Yu <chao2.yu@samsung.com>
5 Crypto resource should be released when ext4 module exits, otherwise
6 it will cause memory leak.
8 Signed-off-by: Chao Yu <chao2.yu@samsung.com>
9 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
10 ---
11  fs/ext4/super.c | 1 +
12  1 file changed, 1 insertion(+)
14 diff --git a/fs/ext4/super.c b/fs/ext4/super.c
15 index aa7621f..e0952b9 100644
16 --- a/fs/ext4/super.c
17 +++ b/fs/ext4/super.c
18 @@ -5640,6 +5640,7 @@ out7:
20  static void __exit ext4_exit_fs(void)
21  {
22 +       ext4_exit_crypto();
23         ext4_destroy_lazyinit_thread();
24         unregister_as_ext2();
25         unregister_as_ext3();
26 -- 
27 2.3.3