mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-23 11:33:32 +00:00
c3de051c41
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> |
||
---|---|---|
.. | ||
cr50_i2c.c | ||
Kconfig | ||
Makefile | ||
sandbox_common.c | ||
sandbox_common.h | ||
tpm-uclass.c | ||
tpm2_ftpm_tee.c | ||
tpm2_ftpm_tee.h | ||
tpm2_tis_core.c | ||
tpm2_tis_mmio.c | ||
tpm2_tis_sandbox.c | ||
tpm2_tis_spi.c | ||
tpm_atmel_twi.c | ||
tpm_internal.h | ||
tpm_tis.h | ||
tpm_tis_infineon.c | ||
tpm_tis_lpc.c | ||
tpm_tis_sandbox.c | ||
tpm_tis_st33zp24_i2c.c | ||
tpm_tis_st33zp24_spi.c |