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: v3.12-rc1~25144^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=815f9e32709b014a459919176a4f0feebd42731e;p=kernel%2Fkernel-generic.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 ecd9ef0..3fa3b24 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; }