tpm: replace dynamically allocated bios_dir with a static array
commitcd9b7631a888f6615dac148c10d72a253b98c64b
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 14 Nov 2016 10:00:50 +0000 (14 05:00 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 27 Nov 2016 23:31:31 +0000 (28 01:31 +0200)
treefea727e138e62c981c51158e450f0df4612223ea
parentb1a9b7b602c5320ab3827a3f6a6a5211826308c4
tpm: replace dynamically allocated bios_dir with a static array

This commit is based on a commit by Nayna Jain. Replaced dynamically
allocated bios_dir with a static array as the size is always constant.

Suggested-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-chip.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm_eventlog.c
drivers/char/tpm/tpm_eventlog.h