Memory leak in tpm_ascii_bios_measurements_open()
authorJesper Juhl <jesper.juhl@gmail.com>
Fri, 20 Jul 2007 07:31:48 +0000 (00:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 20 Jul 2007 15:44:20 +0000 (08:44 -0700)
commit178554ae75739e91dc4d7c3e42a3db95448cc5bf
tree12c9ec848b2c6b463c4f12801e802ee75ff31311
parent22982a5687d8abf7bafe6d307585464f47089f18
Memory leak in tpm_ascii_bios_measurements_open()

Coverity found a memory leak in tpm_ascii_bios_measurements_open().

If "read_log(log)" fails, then we may leak 'log' and
'log->bios_event_log'.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Seiji Munetoh <munetoh@jp.ibm.com>
Cc: Stefan Berger <stefanb@us.ibm.com>
Cc: Reiner Sailer <sailer@watson.ibm.com>
Cc: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tpm/tpm_bios.c