aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDmitry Monakhov <dmonakhov@openvz.org>2007-10-19 17:38:38 -0400
committerAlasdair G Kergon <agk@redhat.com>2007-10-19 21:01:01 -0400
commit815f9e32709b014a459919176a4f0feebd42731e (patch)
tree346f54c6313c34d57259bf59109c2a035e999fcb /drivers
parent55b42c5ae9c048de25233434afc7b71b01bee9e6 (diff)
dm crypt: missing kfree in ctr error path
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/dm-crypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c
index ecd9ef0418cd..3fa3b24947da 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,
175 175
176 if (err) { 176 if (err) {
177 ti->error = "Error calculating hash in ESSIV"; 177 ti->error = "Error calculating hash in ESSIV";
178 kfree(salt);
178 return err; 179 return err;
179 } 180 }
180 181