]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: keembay - Add missing check after sg_nents_for_len()
authorThomas Fourier <fourier.thomas@gmail.com>
Mon, 28 Jul 2025 12:03:30 +0000 (14:03 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 16 Aug 2025 09:22:46 +0000 (17:22 +0800)
commit4e53be21dd0315c00eaf40cc8f8c0facd4d9a6b2
tree124502c40c6c287ab70a985de1a7000bd59ea45a
parent3ed63344657a48b19be6f4a697d94a436c0c7edc
crypto: keembay - Add missing check after sg_nents_for_len()

sg_nents_for_len() returns an int which is negative in case of error.

Fixes: 472b04444cd3 ("crypto: keembay - Add Keem Bay OCS HCU driver")
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/keembay/keembay-ocs-hcu-core.c