crypto: qce - check return value of sg_nents_for_len
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 4 Nov 2015 20:13:36 +0000 (21:13 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 17 Nov 2015 14:00:36 +0000 (22:00 +0800)
commit4fa9948ca5bf308fabd5c9b584bf710f5d393859
tree94d2ee7a7b27ab82fe1ad1cd0db09f549846602f
parent6c2b74d4774f36ea23f9cc8bb1401c1215fcd671
crypto: qce - check return value of sg_nents_for_len

The sg_nents_for_len() function could fail, this patch add a check for
its return value.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/ablkcipher.c
drivers/crypto/qce/sha.c