Re: [PATCH] tpm: add check after commands attribs tab allocation

2019-10-08 Thread Jarkko Sakkinen
On Mon, Oct 07, 2019 at 02:46:37PM -0700, Tadeusz Struk wrote: > devm_kcalloc() can fail and return NULL so we need to check for that. > > Fixes: 58472f5cd4f6f ("tpm: validate TPM 2.0 commands") > Signed-off-by: Tadeusz Struk Thank you. Cc: sta...@vger.kernel.org Reviewed-by: Jarkko Sakkinen

Re: [PATCH] tpm: add check after commands attribs tab allocation

2019-10-07 Thread Jerry Snitselaar
On Mon Oct 07 19, Tadeusz Struk wrote: devm_kcalloc() can fail and return NULL so we need to check for that. Fixes: 58472f5cd4f6f ("tpm: validate TPM 2.0 commands") Signed-off-by: Tadeusz Struk --- drivers/char/tpm/tpm2-cmd.c |4 1 file changed, 4 insertions(+) diff --git

[PATCH] tpm: add check after commands attribs tab allocation

2019-10-07 Thread Tadeusz Struk
devm_kcalloc() can fail and return NULL so we need to check for that. Fixes: 58472f5cd4f6f ("tpm: validate TPM 2.0 commands") Signed-off-by: Tadeusz Struk --- drivers/char/tpm/tpm2-cmd.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/char/tpm/tpm2-cmd.c