]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: atmel-ecc - Release client on allocation failure
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 20 Feb 2026 14:03:13 +0000 (15:03 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 7 Mar 2026 05:12:20 +0000 (14:12 +0900)
commit095d50008d55d13f8fcf1bbeb7c6eba51779bc85
tree048bc40541973f3c864fe47338ab9a3b875e674b
parentde4e66b763d1e81188cb2803ec109466582fc9d1
crypto: atmel-ecc - Release client on allocation failure

Call atmel_ecc_i2c_client_free() to release the I2C client reserved by
atmel_ecc_i2c_client_alloc() when crypto_alloc_kpp() fails. Otherwise
->tfm_count will be out of sync.

Fixes: 11105693fa05 ("crypto: atmel-ecc - introduce Microchip / Atmel ECC driver")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-ecc.c