From: Chao Yu <chao2.yu@samsung.com>
To: 'Ext4 Developers List' <linux-ext4@vger.kernel.org>
Cc: tytso@mit.edu, mhalcrow@google.com, jaegeuk@kernel.org
Subject: [PATCH 1/2] ext4 crypto: release crypto resource when module exit
Date: Fri, 29 May 2015 10:55:37 +0800 [thread overview]
Message-ID: <002801d099bb$13ec4610$3bc4d230$@samsung.com> (raw)
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
next reply other threads:[~2015-05-29 2:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 2:55 Chao Yu [this message]
2015-05-31 17:38 ` [PATCH 1/2] ext4 crypto: release crypto resource when module exit Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002801d099bb$13ec4610$3bc4d230$@samsung.com' \
--to=chao2.yu@samsung.com \
--cc=jaegeuk@kernel.org \
--cc=linux-ext4@vger.kernel.org \
--cc=mhalcrow@google.com \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.