* [2.6.24 PATCH 04/25] dm crypt: missing kfree in ctr error path
@ 2007-10-12 17:06 Alasdair G Kergon
0 siblings, 0 replies; only message in thread
From: Alasdair G Kergon @ 2007-10-12 17:06 UTC (permalink / raw)
To: Linus Torvalds; +Cc: dm-devel, linux-kernel, Dmitry Monakhov
From: Dmitry Monakhov <dmonakhov@openvz.org>
Insert missing kfree() in crypt_iv_essiv_ctr() error path.
Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
---
drivers/md/dm-crypt.c | 1 +
1 files changed, 1 insertion(+)
Index: linux-2.6.23/drivers/md/dm-crypt.c
===================================================================
--- linux-2.6.23.orig/drivers/md/dm-crypt.c 2007-10-12 13:15:30.000000000 +0100
+++ linux-2.6.23/drivers/md/dm-crypt.c 2007-10-12 13:15:31.000000000 +0100
@@ -175,6 +175,7 @@ static int crypt_iv_essiv_ctr(struct cry
if (err) {
ti->error = "Error calculating hash in ESSIV";
+ kfree(salt);
return err;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-12 17:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-12 17:06 [2.6.24 PATCH 04/25] dm crypt: missing kfree in ctr error path Alasdair G Kergon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome