TPM: ReadPubEK output struct fix
commit84caca557082c2c4656584b34360d857d7bee1f1
authorRajiv Andrade <srajiv@linux.vnet.ibm.com>
Mon, 14 Jun 2010 16:58:22 +0000 (14 13:58 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:20:46 +0000 (2 10:20 -0700)
tree607672c0960aaa71549344e184ad828479fe9cd5
parent121ba374607497d8f12d3444c7a7802fda26963b
TPM: ReadPubEK output struct fix

commit 02a077c52ef7631275a79862ffd9f3dbe9d38bc2 upstream.

This patch adds a missing element of the ReadPubEK command output,
that prevents future overflow of this buffer when copying the
TPM output result into it.

Prevents a kernel panic in case the user tries to read the
pubek from sysfs.

Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tpm/tpm.h