linux/drivers/crypto
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
..
allwinner crytpo: sun8i-ce - factor out prepare/unprepare from sun8i_ce_hash_run() 2025-09-13 12:11:05 +08:00
amcc crypto: crypto4xx - Remove ahash-related code 2025-05-12 13:32:52 +08:00
amlogic crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
aspeed crypto: aspeed - fix double free caused by devm 2025-10-23 12:53:23 +08:00
axis treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
bcm crypto: bcm - set memory to zero only once 2025-02-22 15:56:03 +08:00
caam crypto: caam - double the entropy delay interval for retry 2025-09-13 12:11:06 +08:00
cavium crypto: cavium/zip - Remove driver 2025-04-07 13:22:25 +08:00
ccp This update includes the following changes: 2025-10-04 14:59:29 -07:00
ccree crypto: drivers - Remove redundant pm_runtime_mark_last_busy() calls 2025-07-18 20:51:59 +10:00
chelsio crypto: chelsio - Use library to prepare HMAC keys 2025-09-13 12:11:06 +08:00
gemini crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
hisilicon This update includes the following changes: 2025-10-04 14:59:29 -07:00
inside-secure This update includes the following changes: 2025-07-31 09:45:28 -07:00
intel crypto: qat - Return pointer directly in adf_ctl_alloc_resources 2025-09-20 20:21:03 +08:00
loongson crypto: loongson - add Loongson RNG driver support 2025-09-02 12:29:57 +01:00
marvell crypto: octeontx2 - Call strscpy() with correct size argument 2025-08-22 17:28:44 +08:00
nx crypto: comp - Use same definition of context alloc and free ops 2025-09-20 20:21:03 +08:00
qce crypto: qce - revert "use __free() for a buffer that's always freed" 2024-12-21 22:46:24 +08:00
rockchip crypto: rockchip - Fix dma_unmap_sg() nents value 2025-09-13 12:11:05 +08:00
starfive crypto: jh7110 - Remove the use of dev_err_probe() 2025-08-30 15:43:26 +08:00
stm32 crypto: stm32 - Fix spelling mistake "STMicrolectronics" -> "STMicroelectronics" 2025-08-16 17:22:46 +08:00
tegra crypto: tegra - Use int type to store negative error codes 2025-09-13 12:11:06 +08:00
ti crypto: ti - Add CRYPTO_ALG_ASYNC flag to DTHEv2 AES algos 2025-10-02 17:48:50 +08:00
virtio crypto: engine - remove request batching support 2025-07-18 20:52:00 +10:00
xilinx crypto: xilinx - Add TRNG driver for Versal 2025-09-06 15:57:23 +08:00
Kconfig This update includes the following changes: 2025-10-04 14:59:29 -07:00
Makefile This update includes the following changes: 2025-10-04 14:59:29 -07:00
atmel-aes-regs.h
atmel-aes.c crypto: atmel - add support for AES and SHA IPs available on sama7d65 SoC 2025-06-23 16:59:38 +08:00
atmel-authenc.h
atmel-ecc.c crypto: atmel - Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-10-05 13:22:05 +08:00
atmel-i2c.c
atmel-i2c.h
atmel-sha-regs.h
atmel-sha.c crypto: atmel - add support for AES and SHA IPs available on sama7d65 SoC 2025-06-23 16:59:38 +08:00
atmel-sha204a.c crypto: atmel-sha204a - Set hwrng quality to lowest possible 2025-04-23 09:32:57 +08:00
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel - Fix dma_unmap_sg() direction 2025-09-13 12:11:05 +08:00
exynos-rng.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
geode-aes.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
geode-aes.h
hifn_795x.c
img-hash.c crypto: md5 - Wrap library and add HMAC support 2025-08-26 12:52:28 -04:00
mxs-dcp.c crypto: mxs-dcp - Only set OTP_KEY bit for OTP key 2025-03-08 16:22:23 +08:00
omap-aes-gcm.c crypto: drivers - Remove redundant pm_runtime_mark_last_busy() calls 2025-07-18 20:51:59 +10:00
omap-aes.c crypto: omap - convert from tasklet to BH workqueue 2025-09-13 12:11:06 +08:00
omap-aes.h crypto: omap - convert from tasklet to BH workqueue 2025-09-13 12:11:06 +08:00
omap-crypto.c
omap-crypto.h
omap-des.c crypto: omap - convert from tasklet to BH workqueue 2025-09-13 12:11:06 +08:00
omap-sham.c crypto: omap - convert from tasklet to BH workqueue 2025-09-13 12:11:06 +08:00
padlock-aes.c
padlock-sha.c crypto: padlock-sha - Use core import and export for fallback 2025-05-05 18:20:46 +08:00
qcom-rng.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
s5p-sss.c crypto: s5p-sss - Add missing header inclusions 2025-04-16 15:16:21 +08:00
sa2ul.c crypto: sa2ul - Use proper helpers to setup request 2025-04-07 13:22:26 +08:00
sa2ul.h
sahara.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
talitos.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
talitos.h