diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2007-10-19 23:38:38 +0200 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2007-10-20 03:01:01 +0200 |
commit | 815f9e32709b014a459919176a4f0feebd42731e (patch) | |
tree | 346f54c6313c34d57259bf59109c2a035e999fcb /drivers/md/dm-crypt.c | |
parent | dm crypt: drop device ref in ctr error path (diff) | |
download | linux-815f9e32709b014a459919176a4f0feebd42731e.tar.xz linux-815f9e32709b014a459919176a4f0feebd42731e.zip |
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/md/dm-crypt.c')
-rw-r--r-- | drivers/md/dm-crypt.c | 1 |
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, if (err) { ti->error = "Error calculating hash in ESSIV"; + kfree(salt); return err; } |