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

lukas.funke-oss at weidmueller.com lukas.funke-oss at weidmueller.com
Wed Jul 24 09:34:46 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.


Changes in v2:
- Call tpm_tis_wait_init() from tpm_tis_init()
- Use phy_ops for bus access in tpm_tis_wait_init()

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

 drivers/tpm/tpm2_tis_core.c | 28 ++++++++++++++++++++++++++++
 drivers/tpm/tpm2_tis_spi.c  | 29 -----------------------------
 2 files changed, 28 insertions(+), 29 deletions(-)

-- 
2.30.2



More information about the U-Boot mailing list