crypto: amcc - check return value of sg_nents_for_len
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 4 Nov 2015 20:13:39 +0000 (21:13 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 17 Nov 2015 14:00:38 +0000 (22:00 +0800)
commit7aff7d0abc83b0991e83af3c43f0d0df47e7c3bf
tree091d87783b34b2da6e7237a6ec9db92c077295aa
parentf9970c2865d300bd0bb4ba006a0283a8ffa51ada
crypto: amcc - 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/amcc/crypto4xx_core.c