linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ext4 crypto: release crypto resource when module exit
@ 2015-05-29  2:55 Chao Yu
  2015-05-31 17:38 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Chao Yu @ 2015-05-29  2:55 UTC (permalink / raw)
  To: 'Ext4 Developers List'; +Cc: tytso, mhalcrow, jaegeuk

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

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
---
 fs/ext4/super.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index aa7621f..e0952b9 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -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();
-- 
2.3.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] ext4 crypto: release crypto resource when module exit
  2015-05-29  2:55 [PATCH 1/2] ext4 crypto: release crypto resource when module exit Chao Yu
@ 2015-05-31 17:38 ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2015-05-31 17:38 UTC (permalink / raw)
  To: Chao Yu; +Cc: 'Ext4 Developers List', mhalcrow, jaegeuk

On Fri, May 29, 2015 at 10:55:37AM +0800, Chao Yu wrote:
> Crypto resource should be released when ext4 module exits, otherwise
> it will cause memory leak.
> 
> Signed-off-by: Chao Yu <chao2.yu@samsung.com>

Thanks, applied.

						- Ted

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-31 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29  2:55 [PATCH 1/2] ext4 crypto: release crypto resource when module exit Chao Yu
2015-05-31 17:38 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).