android_kernel_oneplus_msm8998/drivers/char/tpm
Jarkko Sakkinen 83a98463d6 tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete
commit 442601e87a4769a8daba4976ec3afa5222ca211d upstream

Return -E2BIG when the transfer is incomplete. The upper layer does
not retry, so not doing that is incorrect behaviour.

Cc: stable@vger.kernel.org
Fixes: a2871c62e1 ("tpm: Add support for Atmel I2C TPMs")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-27 09:34:00 +02:00
..
st33zp24
Kconfig
Makefile
tpm-chip.c tpm: fix: return rc when devm_add_action() fails 2018-11-10 07:41:36 -08:00
tpm-dev.c tpm: fix race condition in tpm_common_write() 2018-08-15 17:42:04 +02:00
tpm-interface.c tpm: suppress transmit cmd error logs when TPM 1.2 is disabled/deactivated 2018-11-21 09:27:32 +01:00
tpm-sysfs.c
tpm.h tpm: do not suspend/resume if power stays on 2018-06-13 16:15:27 +02:00
tpm2-cmd.c tpm: fix potential buffer overruns caused by bit glitches on the bus 2018-03-24 10:58:39 +01:00
tpm_acpi.c
tpm_atmel.c
tpm_atmel.h
tpm_crb.c tpm/tpm_crb: Avoid unaligned reads in crb_recv() 2019-04-27 09:33:59 +02:00
tpm_eventlog.c
tpm_eventlog.h
tpm_i2c_atmel.c tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete 2019-04-27 09:34:00 +02:00
tpm_i2c_infineon.c tpm_i2c_infineon: fix potential buffer overruns caused by bit glitches on the bus 2018-03-11 16:19:44 +01:00
tpm_i2c_nuvoton.c tpm_i2c_nuvoton: fix potential buffer overruns caused by bit glitches on the bus 2018-03-11 16:19:44 +01:00
tpm_ibmvtpm.c
tpm_ibmvtpm.h
tpm_infineon.c
tpm_nsc.c
tpm_of.c
tpm_ppi.c
tpm_tis.c tpm_tis: fix potential buffer overruns caused by bit glitches on the bus 2018-03-24 10:58:39 +01:00
xen-tpmfront.c tpm: Restore functionality to xen vtpm driver. 2018-11-21 09:27:33 +01:00