Skip to content
Commit c686b38d authored by Lukas Funke's avatar Lukas Funke Committed by Ilias Apalodimas
Browse files

tpm: call tpm_tis_wait_init() after tpm_tis_init()



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 commit switches both routines.

Signed-off-by: default avatarLukas Funke <lukas.funke@weidmueller.com>
Acked-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
[Ilias removed unusged 'chip' definition in tpm_tis_spi_probe()]
Reviewed-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Fixes: a5c30c26 ("tpm: Use the new API on tpm2 spi driver")
Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent 6f4c31c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment