diff options
| author | Heinrich Schuchardt <[email protected]> | 2021-11-29 00:03:44 +0100 |
|---|---|---|
| committer | Ilias Apalodimas <[email protected]> | 2021-11-30 14:11:05 +0200 |
| commit | c3de051c411e024f9e63ab338071584b9460e8b3 (patch) | |
| tree | ecd155d8e96bcf38bdf43fabeceb44fb138b6a28 /doc/develop | |
| 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 <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions
