Files
linux-stable-mirror/drivers/crypto/intel
Thomas Fourier 353856179c crypto: keembay - Add missing check after sg_nents_for_len()
[ Upstream commit 4e53be21dd ]

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

Fixes: 472b04444c ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 12:00:05 +02:00
..