git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
trusted keys: Fix a memory leak in trusted_update().
[pandora-kernel.git]
/
security
/
keys
/
trusted.c
diff --git
a/security/keys/trusted.c
b/security/keys/trusted.c
index
3066f56
..
83fc92e
100644
(file)
--- a/
security/keys/trusted.c
+++ b/
security/keys/trusted.c
@@
-1032,6
+1032,7
@@
static int trusted_update(struct key *key, const void *data, size_t datalen)
ret = datablob_parse(datablob, new_p, new_o);
if (ret != Opt_update) {
ret = -EINVAL;
+ kfree(new_p);
goto out;
}
/* copy old key values, and reseal with new pcrs */