mirror-linux/drivers/crypto/aspeed
Haotian Zhang 3c9bf72cc1 crypto: aspeed - fix double free caused by devm
The clock obtained via devm_clk_get_enabled() is automatically managed
by devres and will be disabled and freed on driver detach. Manually
calling clk_disable_unprepare() in error path and remove function
causes double free.

Remove the manual clock cleanup in both aspeed_acry_probe()'s error
path and aspeed_acry_remove().

Fixes: 2f1cf4e50c ("crypto: aspeed - Add ACRY RSA driver")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-10-23 12:53:23 +08:00
..
Kconfig crypto: aspeed - Remove cfb and ofb 2023-12-08 11:59:45 +08:00
Makefile crypto: aspeed - Fix modular aspeed-acry 2023-02-14 13:39:33 +08:00
aspeed-acry.c crypto: aspeed - fix double free caused by devm 2025-10-23 12:53:23 +08:00
aspeed-hace-crypto.c crypto: aspeed - Fix dma_unmap_sg() direction 2025-09-20 20:21:03 +08:00
aspeed-hace-hash.c crypto: aspeed - Fix hash fallback path typo 2025-06-26 12:56:26 +08:00
aspeed-hace.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
aspeed-hace.h crypto: aspeed/hash - Use API partial block handling 2025-06-13 17:26:15 +08:00