trusted-keys: free memory bugfix
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 20 Dec 2010 17:37:18 +0000 (12:37 -0500)
committerJames Morris <jmorris@namei.org>
Thu, 13 Jan 2011 23:27:46 +0000 (10:27 +1100)
commit40c1001792de63e0f90e977eb05393fd71f78692
tree7172e92ccefd8f4b8ee42401901ddab5bec687b5
parent581548db3b3c0f6e25b500329eb02e3c72e7acbe
trusted-keys: free memory bugfix

Add missing kfree(td) in tpm_seal() before the return, freeing
td on error paths as well.

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Acked-by: David Safford <safford@watson.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/trusted_defined.c