linux-stable/drivers/char/tpm
Tadeusz Struk 2e0e2b4860 tpm: add check after commands attribs tab allocation
commit f1689114ac upstream.

devm_kcalloc() can fail and return NULL so we need to check for that.

Cc: stable@vger.kernel.org
Fixes: 58472f5cd4 ("tpm: validate TPM 2.0 commands")
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-17 20:34:42 +01:00
..
eventlog tpm: Fix the type of the return value in calc_tpm2_event_size() 2019-04-27 09:36:40 +02:00
st33zp24 tpm: Fix some name collisions with drivers/char/tpm.h 2019-09-16 08:22:05 +02:00
Kconfig tpm: Move Linux RNG connection to hwrng 2018-01-08 12:58:36 +02:00
Makefile tpm: Move shared eventlog functions to common.c 2018-05-09 14:45:46 +03:00
tpm-chip.c tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations 2019-10-07 18:56:28 +02:00
tpm-dev-common.c tpm: fix race condition in tpm_common_write() 2018-05-30 20:11:31 +03:00
tpm-dev.c
tpm-dev.h tpm: fix race condition in tpm_common_write() 2018-05-30 20:11:31 +03:00
tpm-interface.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm-sysfs.c tpm: use tpm_try_get_ops() in tpm-sysfs.c. 2019-10-07 18:56:27 +02:00
tpm.h tpm: replace TPM_TRANSMIT_RAW with TPM_TRANSMIT_NESTED 2018-07-28 17:03:11 +03:00
tpm2-cmd.c tpm: add check after commands attribs tab allocation 2019-12-17 20:34:42 +01:00
tpm2-space.c tpm: replace TPM_TRANSMIT_RAW with TPM_TRANSMIT_NESTED 2018-07-28 17:03:11 +03:00
tpm_atmel.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_atmel.h
tpm_crb.c tpm/tpm_crb: Avoid unaligned reads in crb_recv() 2019-03-23 20:10:11 +01:00
tpm_i2c_atmel.c tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete 2019-04-27 09:36:40 +02:00
tpm_i2c_infineon.c tpm: Fix some name collisions with drivers/char/tpm.h 2019-09-16 08:22:05 +02:00
tpm_i2c_nuvoton.c tpm: Fix some name collisions with drivers/char/tpm.h 2019-09-16 08:22:05 +02:00
tpm_ibmvtpm.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_ibmvtpm.h
tpm_infineon.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_nsc.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_ppi.c
tpm_tis.c tpm: remove unused variables 2018-01-08 12:58:54 +02:00
tpm_tis_core.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_tis_core.h tpm: Allow tpm_tis drivers to set hwrng quality. 2018-07-28 17:03:11 +03:00
tpm_tis_spi.c tpm_tis_spi: Pass the SPI IRQ down to the driver 2018-07-28 17:03:11 +03:00
tpm_vtpm_proxy.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpmrm-dev.c tpm, tpmrm: Mark tpmrm_write as static 2017-06-13 22:02:08 +03:00
xen-tpmfront.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00