[PATCH 0/1] tpm: fix uninitalized field access

lukas.funke-oss at weidmueller.com lukas.funke-oss at weidmueller.com
Mon Jul 15 13:23:00 CEST 2024


From: Lukas Funke <lukas.funke at weidmueller.com>


tpm_tis_wait_init() is using the 'chip->timeout_b' field which is
initialized in tpm_tis_init(). However, the init-function is called
*after* tpm_tis_wait_init() introducing an uninitalized field access.

This series/commit fixes the issue.



Lukas Funke (1):
  tpm: call tpm_tis_wait_init() after tpm_tis_init()

 drivers/tpm/tpm2_tis_spi.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
2.30.2



More information about the U-Boot mailing list