linux/drivers/crypto/ccree
Haotian Zhang 8700ce07c5 crypto: ccree - Correctly handle return of sg_nents_for_len
Fix error handling in cc_map_hash_request_update where sg_nents_for_len
return value was assigned to u32, converting negative errors to large
positive values before passing to sg_copy_to_buffer.

Check sg_nents_for_len return value and propagate errors before
assigning to areq_ctx->in_nents.

Fixes: b7ec853068 ("crypto: ccree - use std api when possible")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-11-22 10:04:50 +08:00
..
Makefile
cc_aead.c crypto: ccree - Fix typo in comment 2024-10-05 13:22:05 +08:00
cc_aead.h
cc_buffer_mgr.c crypto: ccree - Correctly handle return of sg_nents_for_len 2025-11-22 10:04:50 +08:00
cc_buffer_mgr.h
cc_cipher.c crypto: ccree - Don't use %pK through printk 2025-06-23 17:00:27 +08:00
cc_cipher.h
cc_crypto_ctx.h
cc_debugfs.c crypto: ccree - Make cc_debugfs_global_fini() available for module init function 2022-11-22 18:12:55 +08:00
cc_debugfs.h
cc_driver.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
cc_driver.h
cc_fips.c
cc_fips.h
cc_hash.c crypto: ccree - Don't use %pK through printk 2025-06-23 17:00:27 +08:00
cc_hash.h
cc_host_regs.h
cc_hw_queue_defs.h
cc_kernel_regs.h
cc_lli_defs.h
cc_pm.c crypto: drivers - Remove redundant pm_runtime_mark_last_busy() calls 2025-07-18 20:51:59 +10:00
cc_pm.h
cc_request_mgr.c
cc_request_mgr.h
cc_sram_mgr.c
cc_sram_mgr.h