Re: [PATCH] crypto: atmel-sha204a - Fix OOM ->tfm_count leak

From: Herbert Xu

Date: Sat Feb 28 2026 - 03:57:25 EST


On Thu, Feb 19, 2026 at 12:54:00AM +0100, Thorsten Blum wrote:
> If memory allocation fails, decrement ->tfm_count to avoid blocking
> future reads.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: da001fb651b0 ("crypto: atmel-i2c - add support for SHA204A random number generator")
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/atmel-sha204a.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt