From: Dmitry Monakhov Date: Fri, 19 Oct 2007 21:38:38 +0000 (+0100) Subject: dm crypt: missing kfree in ctr error path X-Git-Tag: v2.6.24-rc1~130^2~25 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=815f9e32709b014a459919176a4f0feebd42731e;p=linux-2.6-omap-h63xx.git dm crypt: missing kfree in ctr error path Insert missing kfree() in crypt_iv_essiv_ctr() error path. Signed-off-by: Dmitry Monakhov Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index ecd9ef0418c..3fa3b24947d 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -175,6 +175,7 @@ static int crypt_iv_essiv_ctr(struct crypt_config *cc, struct dm_target *ti, if (err) { ti->error = "Error calculating hash in ESSIV"; + kfree(salt); return err; }