Commit e298e73b authored by Chao Yu's avatar Chao Yu Committed by Theodore Ts'o

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: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent abdd438b
......@@ -5645,6 +5645,7 @@ static int __init ext4_init_fs(void)
static void __exit ext4_exit_fs(void)
{
ext4_exit_crypto();
ext4_destroy_lazyinit_thread();
unregister_as_ext2();
unregister_as_ext3();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment