lkml.org 
[lkml]   [2007]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] drivers/md/dm-crypt.c: potential memleak fix
Date
Hello,

This patch fixes a potential memleak on error path in dm-crypt code.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>

drivers/md/dm-crypt.c | 26204 -> 26219 (+15 bytes)
drivers/md/dm-crypt.o | 142872 -> 142872 (0 bytes)

drivers/md/dm-crypt.c | 1 +
1 file changed, 1 insertion(+)

--- linux-2.6.23-rc2-mm2-a/drivers/md/dm-crypt.c 2007-08-10 12:46:08.000000000 +0200
+++ linux-2.6.23-rc2-mm2-b/drivers/md/dm-crypt.c 2007-08-12 09:10:22.000000000 +0200
@@ -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;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2007-08-12 11:13    [W:0.043 / U:0.732 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site