[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200708121111.03725.m.kozlowski@tuxland.pl>
Date: Sun, 12 Aug 2007 11:11:03 +0200
From: Mariusz Kozlowski <m.kozlowski@...land.pl>
To: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: [PATCH] drivers/md/dm-crypt.c: potential memleak fix
Hello,
This patch fixes a potential memleak on error path in dm-crypt code.
Signed-off-by: Mariusz Kozlowski <m.kozlowski@...land.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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists