diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-11-10 15:20:41 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-11-22 10:04:50 +0800 |
| commit | 8700ce07c5c6bf27afa7b59a8d9cf58d783a7d5c (patch) | |
| tree | 7dfdfc2c0d0331cb10297124021964e3150a7fbd /kernel/locking/mutex-debug.c | |
| parent | e9eb52037a529fbb307c290e9951a62dd728b03d (diff) | |
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: b7ec8530687a ("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>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions
