Fix memory leak in tpm_binary_bios_measurements_open()
authorReiner Sailer <sailer@us.ibm.com>
Fri, 20 Jul 2007 14:03:02 +0000 (10:03 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 20 Jul 2007 19:00:04 +0000 (12:00 -0700)
commit03ce11048b3832f5f0c471ccdb3363a870a14ac1
tree6f12eb6f9a11046474585fed67a05eb6c76ed248
parentc1158e63dfeb3928e94c768f0a403b3e0e799f70
Fix memory leak in tpm_binary_bios_measurements_open()

The same problem that was fixed for tpm_ascii_bios_measurements_open()
in commit 178554ae75739e91dc4d7c3e42a3db95448cc5bf also occurs in
tpm_binary_bios measurements().  Thanks for noticing this Satyam!

I tested the attached patch to fix tpm_binary_bios_measurments as well.

Signed-off-by: Reiner Sailer <sailer@watson.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tpm/tpm_bios.c