crypto: marvell - check return value of sg_nents_for_len
commitc22dafb3b101073d83262b6c9020b6578d2a442a
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 4 Nov 2015 20:13:33 +0000 (4 21:13 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 17 Nov 2015 14:00:35 +0000 (17 22:00 +0800)
tree28a6a7c4f0c6807f85a53c34f97714e45d743e21
parent652d5b8a8da8f05f7fb301067ffeef78b6f2eb01
crypto: marvell - 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/marvell/cipher.c
drivers/crypto/marvell/hash.c