]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: tpm: Correct handling of get-capability
authorSimon Glass <sjg@chromium.org>
Sun, 18 Jul 2021 20:18:00 +0000 (14:18 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 1 Aug 2021 15:05:24 +0000 (09:05 -0600)
commit7f350a959c1a9562b1b84d145e1084e90fa86353
treea4db65d44b2e525424052e0fdf164c3c86d27938
parentf9143c12003aabbad3a2485f8ad305f5dff5fae9
sandbox: tpm: Correct handling of get-capability

This function current handles the kernel case incorrectly. Fix it, and
use the shorter TPM_HDR_LEN while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/tpm/tpm_tis_sandbox.c