diff options
author | Tom Rini <trini@konsulko.com> | 2022-09-03 14:55:37 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-09-03 14:55:37 -0400 |
commit | 427aa3c9b72b6672f714389a6f71b6cc2841d559 (patch) | |
tree | 476ad96614cfa09e11674b4f36d74c6e001b3753 /lib/tpm-v1.c | |
parent | bc5d11316be3cdf09c6d854070c67ec0952528ee (diff) | |
parent | 5208ed187cb6314dc64657802e8e5bb5a5e3a7fb (diff) |
Merge tag 'tpm-03092022' of https://source.denx.de/u-boot/custodians/u-boot-tpm
TPM fixes and state reporting
Diffstat (limited to 'lib/tpm-v1.c')
-rw-r--r-- | lib/tpm-v1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tpm-v1.c b/lib/tpm-v1.c index 22a769c5874..d0e3ab1b21d 100644 --- a/lib/tpm-v1.c +++ b/lib/tpm-v1.c @@ -456,12 +456,13 @@ u32 tpm1_get_permissions(struct udevice *dev, u32 index, u32 *perm) 0x0, 0x0, 0x0, 0x4, }; const size_t index_offset = 18; - const size_t perm_offset = 60; + const size_t perm_offset = 74; u8 buf[COMMAND_BUFFER_SIZE], response[COMMAND_BUFFER_SIZE]; size_t response_length = sizeof(response); u32 err; - if (pack_byte_string(buf, sizeof(buf), "d", 0, command, sizeof(command), + if (pack_byte_string(buf, sizeof(buf), "sd", + 0, command, sizeof(command), index_offset, index)) return TPM_LIB_ERROR; err = tpm_sendrecv_command(dev, buf, response, &response_length); |