From: Lukas Funke <[email protected]>
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

