mirror of https://github.com/torvalds/linux.git
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:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| cc_aead.c | ||
| cc_aead.h | ||
| cc_buffer_mgr.c | ||
| cc_buffer_mgr.h | ||
| cc_cipher.c | ||
| cc_cipher.h | ||
| cc_crypto_ctx.h | ||
| cc_debugfs.c | ||
| cc_debugfs.h | ||
| cc_driver.c | ||
| cc_driver.h | ||
| cc_fips.c | ||
| cc_fips.h | ||
| cc_hash.c | ||
| cc_hash.h | ||
| cc_host_regs.h | ||
| cc_hw_queue_defs.h | ||
| cc_kernel_regs.h | ||
| cc_lli_defs.h | ||
| cc_pm.c | ||
| cc_pm.h | ||
| cc_request_mgr.c | ||
| cc_request_mgr.h | ||
| cc_sram_mgr.c | ||
| cc_sram_mgr.h | ||