2014-12-02 20:45:44

by Peter Huewe

[permalink] [raw]
Subject: Re: [PATCH] char: tpm: Add missing error check for devm_kzalloc

Am Freitag, 19. September 2014, 09:14:39 schrieb Kiran Padwal:
> Currently these driver are missing a check on the return value of
> devm_kzalloc, which would cause a NULL pointer dereference in a OOM
> situation.
>
> This patch adds a missing check for tpm_i2c_atmel.c and tpm_i2c_nuvoton.c
>
> Signed-off-by: Kiran Padwal <[email protected]>
Applied to my tree:
https://github.com/PeterHuewe/linux-tpmdd for-james

Will be included in the next pull-request.

Thanks,
Peter