Commit 4e53be21 authored by Thomas Fourier's avatar Thomas Fourier Committed by Herbert Xu
Browse files

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: 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>
parent 3ed63344
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment