Skip to content

Commit

Permalink
dm crypt: missing kfree in ctr error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Monakhov authored and Alasdair G Kergon committed Oct 20, 2007
1 parent 55b42c5 commit 815f9e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm-crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 815f9e3

Please sign in to comment.