]> git.baikalelectronics.ru Git - kernel.git/commit
TPM: ReadPubEK output struct fix
authorRajiv Andrade <srajiv@linux.vnet.ibm.com>
Mon, 14 Jun 2010 16:58:22 +0000 (13:58 -0300)
committerJames Morris <jmorris@namei.org>
Mon, 14 Jun 2010 23:26:28 +0000 (09:26 +1000)
commit55100fb9b719db35f519bc309f0fe434bfb24267
treee7101d617847953dbf28f8658251b7401c4135b3
parenta05552eb058caba6e4fae1ea274cb90883c6f8eb
TPM: ReadPubEK output struct fix

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>
drivers/char/tpm/tpm.h