TPM: ReadPubEK output struct fix
commit20bc0849443377b314abd94895ee6f79df821c78
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:29:30 +0000 (2 10:29 -0700)
tree154d041097cccbc4e9db6026abf05244b21816a5
parent529277e7ea6161bbabba4e9ca826791e3dc23d27
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