[PATCH v2 02/10] sandbox: tpm: Tidy up reading and writing of device state
Simon Glass
sjg at chromium.org
Sat Jul 24 23:12:09 CEST 2021
At present this code assumes that the TPM data has been read but this may
not be the case. Refactor the code to use a separate pointer so we know
the current state of the data.
Add error checking for the data size.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
drivers/tpm/tpm_tis_sandbox.c | 35 ++++++++++++++++++++++++-----------
1 file changed, 24 insertions(+), 11 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list