On Thu, 5 Nov 2020 at 14:58, Ilias Apalodimas <ilias.apalodi...@linaro.org> wrote: > > For implementing the EFI_TCG2_PROTOCOL we need the count field returned by > the TPM when reading capabilities via tpm2_get_capability(). > > Adjust the implementation of the 'tpm2 get_capability' command accordingly. > > Suggested-by: Heinrich Schuchardt <xypron.g...@gmx.de> > Signed-off-by: Ilias Apalodimas <ilias.apalodi...@linaro.org> > --- > Changes since v1: > - Unconditionally get the extra 4 bytes on the response and account for them > in do_tpm_get_capability() > cmd/tpm-v2.c | 4 ++-- > lib/tpm-v2.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org>