projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abdd438
)
ext4 crypto: release crypto resource on module exit
author
Chao Yu
<chao2.yu@samsung.com>
Sun, 31 May 2015 17:37:35 +0000
(13:37 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 31 May 2015 17:37:35 +0000
(13:37 -0400)
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
patch
|
blob
|
history
diff --git
a/fs/ext4/super.c
b/fs/ext4/super.c
index 56bfc2f25d90edb0cff900e1895669b4b5e5fd11..31e85bea965202de46488a682007c643df29de3b 100644
(file)
--- a/
fs/ext4/super.c
+++ b/
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();