]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: atmel-sha204a - Fix OOM ->tfm_count leak
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 18 Feb 2026 23:54:00 +0000 (00:54 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 28 Feb 2026 03:53:25 +0000 (12:53 +0900)
commitd240b079a37e90af03fd7dfec94930eb6c83936e
treeecc5029240b2ca393ba742c9a15756cd4cc1b014
parent889b0e2721e793eb46cf7d17b965aa3252af3ec8
crypto: atmel-sha204a - Fix OOM ->tfm_count leak

If memory allocation fails, decrement ->tfm_count to avoid blocking
future reads.

Cc: stable@vger.kernel.org
Fixes: da001fb651b0 ("crypto: atmel-i2c - add support for SHA204A random number generator")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha204a.c