]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: fix reading of permanent flags
authorAndré Draszik <adraszik@tycoint.com>
Tue, 3 Oct 2017 15:55:51 +0000 (16:55 +0100)
committerSimon Glass <sjg@chromium.org>
Fri, 17 Nov 2017 02:10:29 +0000 (19:10 -0700)
commite8155dfe33eb2b3e538e8717d6578c1d08651454
treea85c7bfbc75f9b028ec79069f48f8bcf5715ee0b
parent3fe3839acc4a5d9b1af9b2ab3884b0d3f2e23370
tpm: fix reading of permanent flags

The offset of the permanent flags structure is in a different
place in the response compared to what the code is doing,
which gives us a completely useless result.

Fix by replacing hand-crafted code with generic parser
infrastructure.

Signed-off-by: André Draszik <adraszik@tycoint.com>
Acked-by: Simon Glass <sjg@chromium.org>
lib/tpm.c