From e298e73bd766768707a7af440691ce2f418f5acc Mon Sep 17 00:00:00 2001
From: Chao Yu <chao2.yu@samsung.com>
Date: Sun, 31 May 2015 13:37:35 -0400
Subject: [PATCH] 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>
---
fs/ext4/super.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 56bfc2f25d90e..31e85bea96520 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -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();