Skip to contentSkip to conversation

ext4 crypto: release crypto resource when module exit

PATCH Applied Chao Yu 2 participants 2 messages May 29, 2015 – May 31, 2015 ext4 file system

lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/2 ext4 crypto: release crypto resource when module exit

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

---
 fs/ext4/super.c | 1 +
 1 file changed, 1 insertion(+)
fs/ext4/super.c +1 -0
index aa7621f..e0952b9 100644
@@ -5640,6 +5640,7 @@ out7:
 
 static void __exit ext4_exit_fs(void)
 {
+	ext4_exit_crypto();
 	ext4_destroy_lazyinit_thread();
 	unregister_as_ext2();
 	unregister_as_ext3();
Signature · 1 line
2.3.3
maintainer Applied
#1 lore raw
Quoted 4 lines · Chao Yu

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

Thanks, applied.

- Ted