mirror-linux/drivers/crypto/inside-secure
Christian Marangi 217460544a crypto: inside-secure/eip93 - Correctly handle return of for sg_nents_for_len
Fix smatch warning for sg_nents_for_len return value in Inside Secure
EIP93 driver.

The return value of sg_nents_for_len was assigned to an u32 and the
error was ignored and converted to a positive integer.

Rework the code to correctly handle the error from sg_nents_for_len to
mute smatch warning.

Fixes: 9739f5f93b ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-02-22 15:56:03 +08:00
..
eip93 crypto: inside-secure/eip93 - Correctly handle return of for sg_nents_for_len 2025-02-22 15:56:03 +08:00
Makefile crypto: inside-secure - Eliminate duplication in top-level Makefile 2025-02-22 15:56:02 +08:00
safexcel.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
safexcel.h crypto: safexcel - Remove unused declaration safexcel_ring_first_rptr() 2024-08-30 18:22:30 +08:00
safexcel_cipher.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
safexcel_hash.c crypto: inside-secure - Fix the return value of safexcel_xcbcmac_cra_init() 2024-11-10 11:50:54 +08:00
safexcel_ring.c crypto: inside-secure - Prevent missing of processing errors 2020-09-18 17:20:10 +10:00