The return value of sg_nents_for_len was assigned to an unsigned long
in starfive_hash_digest, causing negative error codes to be converted
to large positive integers.
Add error checking for sg_nents_for_len and return immediately on
failure to prevent potential buffer overflows.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| jh7110-aes.c | ||
| jh7110-cryp.c | ||
| jh7110-cryp.h | ||
| jh7110-hash.c | ||
| jh7110-rsa.c | ||