projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55b42c5
)
dm crypt: missing kfree in ctr error path
author
Dmitry Monakhov
<dmonakhov@openvz.org>
Fri, 19 Oct 2007 21:38:38 +0000
(22:38 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Sat, 20 Oct 2007 01:01:01 +0000
(
02:01
+0100)
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>
drivers/md/dm-crypt.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-crypt.c
b/drivers/md/dm-crypt.c
index ecd9ef0418cd6e95925bef7c7a86e8dceddae78e..3fa3b24947dac893431d29ec2bc5aee4f4e1d290 100644
(file)
--- 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;
}