Commit c5d08ff9 authored by Thomas Fourier's avatar Thomas Fourier Committed by Greg Kroah-Hartman
Browse files

crypto: keembay - Add missing check after sg_nents_for_len()



[ Upstream commit 4e53be21 ]

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

Fixes: 472b0444 ("crypto: keembay - Add Keem Bay OCS HCU driver")
Signed-off-by: default avatarThomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9c5cfe54
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment