commit | 1db235a186c001a50e5f5db9b587bbaa4e397ee7 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Jul 18 14:17:58 2021 -0600 |
committer | Simon Glass <sjg@chromium.org> | Sun Aug 01 09:05:24 2021 -0600 |
tree | c023f64a2ddb6a32033e43243ad8e594efeb22ba | |
parent | 974c98f26c765f323433b0c52e02ea3a777bc80f [diff] |
sandbox: tpm: Tidy up reading and writing of device state 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@chromium.org>