Rather than returning ~0, return 0 for every register in case of failure mode. The '0' is better to indicate that there's no device there. It avoids SeaBIOS detecting a device and getting stuck on it trying to read and write its registers. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> |
||
---|---|---|
.. | ||
Makefile.objs | ||
tpm_emulator.c | ||
tpm_int.h | ||
tpm_ioctl.h | ||
tpm_passthrough.c | ||
tpm_tis.c | ||
tpm_util.c | ||
tpm_util.h |