crypto: talitos - avoid out of bound scatterlist iterator
authorHoria Geant? <horia.geanta@freescale.com>
Tue, 12 May 2015 08:28:05 +0000 (11:28 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 13 May 2015 02:31:57 +0000 (10:31 +0800)
commitbde9079f3cd5e4275be2169cf7b0c74bfb464f78
tree2c38b268854c68c6f524350f788b3847f0d804b7
parent69d9cd8c592f1abce820dbce7181bbbf6812cfbd
crypto: talitos - avoid out of bound scatterlist iterator

Check return value of scatterlist_sg_next(), i.e. don't rely solely
on number of bytes to be processed or number of scatterlist entries.

Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c