U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] tpm: fix uninitalized field access
@ 2024-07-15 11:23 lukas.funke-oss
  2024-07-15 11:23 ` [PATCH 1/1] tpm: call tpm_tis_wait_init() after tpm_tis_init() lukas.funke-oss
  0 siblings, 1 reply; 7+ messages in thread
From: lukas.funke-oss @ 2024-07-15 11:23 UTC (permalink / raw)
  To: u-boot; +Cc: Lukas Funke, Ilias Apalodimas, Miquel Raynal, Tim Harvey,
	Tom Rini

From: Lukas Funke <lukas.funke@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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-07-23 13:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-15 11:23 [PATCH 0/1] tpm: fix uninitalized field access lukas.funke-oss
2024-07-15 11:23 ` [PATCH 1/1] tpm: call tpm_tis_wait_init() after tpm_tis_init() lukas.funke-oss
2024-07-17  7:39   ` Miquel Raynal
2024-07-21 10:08   ` Simon Glass
2024-07-22  7:34     ` Ilias Apalodimas
2024-07-23 12:47       ` Simon Glass
2024-07-23 13:38         ` Ilias Apalodimas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox