diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2021-11-29 00:03:44 +0100 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2021-11-30 14:11:05 +0200 |
commit | c3de051c411e024f9e63ab338071584b9460e8b3 (patch) | |
tree | ecd155d8e96bcf38bdf43fabeceb44fb138b6a28 /lib/ecdsa/ecdsa-libcrypto.c | |
parent | ade37460a944aed36ae6ee634c4d4a9a22690461 (diff) |
tis: fix tpm_tis_remove()
tpm_tis_remove() leads to calling tpm_tis_ready() with the IO region
unmapped and chip->locality == -1 (locality released). This leads to a
crash in mmio_write_bytes().
The patch implements these changes:
tpm_tis_remove(): Unmap the IO region after calling tpm_tis_cleanup().
tpm_tis_cleanup(): Request locality before IO output and releasing
locality.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/ecdsa/ecdsa-libcrypto.c')
0 files changed, 0 insertions, 0 deletions