Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=815f9e32709b014a459919176a4f0feebd42731e
Commit:     815f9e32709b014a459919176a4f0feebd42731e
Parent:     55b42c5ae9c048de25233434afc7b71b01bee9e6
Author:     Dmitry Monakhov <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 19 22:38:38 2007 +0100
Committer:  Alasdair G Kergon <[EMAIL PROTECTED]>
CommitDate: Sat Oct 20 02:01:01 2007 +0100

    dm crypt: missing kfree in ctr error path
    
    Insert missing kfree() in crypt_iv_essiv_ctr() error path.
    
    Signed-off-by: Dmitry Monakhov <[EMAIL PROTECTED]>
    Signed-off-by: Alasdair G Kergon <[EMAIL PROTECTED]>
---
 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 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;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to