]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tpm: replace dynamically allocated bios_dir with a static array
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 14 Nov 2016 10:00:50 +0000 (05:00 -0500)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 27 Nov 2016 23:31:31 +0000 (01:31 +0200)
commitcd9b7631a888f6615dac148c10d72a253b98c64b
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