Re: [PATCH RESEND 2/3] tpm: replace dynamically allocated bios_dir with a static array

From: Jason Gunthorpe
Date: Sun Oct 02 2016 - 17:40:14 EST


On Sat, Oct 01, 2016 at 10:25:25PM +0300, Jarkko Sakkinen wrote:

> + for (i = (TPM_NUM_EVENT_LOG_FILES - 1); i >= 0; i--) {
> + if (chip->bios_dir[i])

The entries can't actually be null here, right?

Jason