Commit 815f9e32 authored by Dmitry Monakhov's avatar Dmitry Monakhov Committed by Alasdair G Kergon

dm crypt: missing kfree in ctr error path

Insert missing kfree() in crypt_iv_essiv_ctr() error path.
Signed-off-by: default avatarDmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 55b42c5a
...@@ -175,6 +175,7 @@ static int crypt_iv_essiv_ctr(struct crypt_config *cc, struct dm_target *ti, ...@@ -175,6 +175,7 @@ static int crypt_iv_essiv_ctr(struct crypt_config *cc, struct dm_target *ti,
if (err) { if (err) {
ti->error = "Error calculating hash in ESSIV"; ti->error = "Error calculating hash in ESSIV";
kfree(salt);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment