linux/drivers/crypto/caam
Herbert Xu b7b39df7e7 crypto: caam/qi - Fix drv_ctx refcount bug
Ensure refcount is raised before request is enqueued since it could
be dequeued before the call returns.

Reported-by: Sean Anderson <sean.anderson@linux.dev>
Cc: <stable@vger.kernel.org>
Fixes: 11144416a7 ("crypto: caam/qi - optimize frame queue cleanup")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Tested-by: Sean Anderson <sean.anderson@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-04-09 21:28:31 +08:00
..
Kconfig crypto: caam: Make CRYPTO_DEV_FSL_CAAM dependent of COMPILE_TEST 2024-07-04 10:19:23 -07:00
Makefile This update includes the following changes: 2022-05-27 18:06:49 -07:00
blob_gen.c crypto: caam - use JobR's space to access page 0 regs 2024-12-10 13:44:20 +08:00
caamalg.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
caamalg_desc.c
caamalg_desc.h
caamalg_qi.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
caamalg_qi2.c crypto: drivers - Use str_enable_disable-like helpers 2025-02-09 18:08:11 +08:00
caamalg_qi2.h crypto: caam: Unembed net_dev structure in dpaa2 2024-07-04 10:19:24 -07:00
caamhash.c crypto: caam - Pad SG length when allocating hash edesc 2024-09-21 17:14:59 +08:00
caamhash_desc.c crypto: caam - drop unexpected word 'for' in comments 2022-06-30 15:56:57 +08:00
caamhash_desc.h
caampkc.c crypto: caam - add error check to caam_rsa_set_priv_key_form 2024-11-15 19:52:51 +08:00
caampkc.h crypto: caam - Use new crypto_engine_op interface 2023-08-18 17:01:10 +08:00
caamprng.c crypto: caam - Remove GFP_DMA and add DMA alignment padding 2023-01-06 17:15:47 +08:00
caamrng.c crypto: caam - add a test for the RNG 2023-06-23 16:15:36 +08:00
compat.h
ctrl.c crypto: caam: Avoid unused imx8m_machine_match variable 2024-07-04 10:19:23 -07:00
ctrl.h
debugfs.c crypto: caam - OP-TEE firmware support 2023-04-14 18:59:34 +08:00
debugfs.h crypto: caam - reduce page 0 regs access to minimum 2023-04-14 18:59:34 +08:00
desc.h
desc_constr.h crypto: caam - Avoid GCC memset bug warning 2023-01-06 17:15:46 +08:00
dpseci-debugfs.c crypto: caam - remove unnecessary (void*) conversions 2023-03-24 18:22:29 +08:00
dpseci-debugfs.h
dpseci.c
dpseci.h
dpseci_cmd.h
error.c
error.h
intern.h crypto: caam - add power management support 2023-08-04 16:59:55 +08:00
jr.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
jr.h
key_gen.c crypto: caam - Remove GFP_DMA and add DMA alignment padding 2023-01-06 17:15:47 +08:00
key_gen.h
pdb.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
pkc_desc.c
qi.c crypto: caam/qi - Fix drv_ctx refcount bug 2025-04-09 21:28:31 +08:00
qi.h crypto: caam - Remove GFP_DMA and add DMA alignment padding 2023-01-06 17:15:47 +08:00
regs.h crypto: caam - add power management support 2023-08-04 16:59:55 +08:00
sg_sw_qm.h
sg_sw_qm2.h
sg_sw_sec4.h