aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorTadeusz Struk <tadeusz.struk@intel.com>2019-10-07 14:46:37 -0700
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2019-11-12 21:45:37 +0200
commitf1689114acc5e89a196fec6d732dae3e48edb6ad (patch)
treeacebb07fcaf593a6a17bd6973d5307ddda5d1441 /crypto
parenttpm: tpm_tis_spi: Drop THIS_MODULE usage from driver struct (diff)
downloadlinux-dev-f1689114acc5e89a196fec6d732dae3e48edb6ad.tar.xz
linux-dev-f1689114acc5e89a196fec6d732dae3e48edb6ad.zip
tpm: add check after commands attribs tab allocation
devm_kcalloc() can fail and return NULL so we need to check for that. Cc: stable@vger.kernel.org Fixes: 58472f5cd4f6f ("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>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions