浏览代码

ext4 crypto: release crypto resource on module exit

Crypto resource should be released when ext4 module exits, otherwise
it will cause memory leak.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Chao Yu 10 年之前
父节点
当前提交
e298e73bd7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      fs/ext4/super.c

+ 1 - 0
fs/ext4/super.c

@@ -5645,6 +5645,7 @@ out7:
 
 static void __exit ext4_exit_fs(void)
 {
+	ext4_exit_crypto();
 	ext4_destroy_lazyinit_thread();
 	unregister_as_ext2();
 	unregister_as_ext3();