diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2025-02-16 00:36:18 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-02-22 15:56:03 +0800 |
commit | 217460544a1b9741874dab826eb614e8c006f8a8 (patch) | |
tree | 3824130f30b10daeb6ba8f4304e5f92d652e19db /crypto/algapi.c | |
parent | ee509efc74ddbc59bb5d6fd6e050f9ef25f74bff (diff) | |
download | linux-217460544a1b9741874dab826eb614e8c006f8a8.tar.gz linux-217460544a1b9741874dab826eb614e8c006f8a8.tar.bz2 linux-217460544a1b9741874dab826eb614e8c006f8a8.zip |
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: 9739f5f93b78 ("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>
Diffstat (limited to 'crypto/algapi.c')
0 files changed, 0 insertions, 0 deletions