]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: talitos - fix bug in sg_copy_end_to_buffer
authorLee Nipper <lee.nipper@gmail.com>
Mon, 19 Jul 2010 06:11:24 +0000 (14:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jul 2010 06:11:24 +0000 (14:11 +0800)
commite77f299fdfe38ae81179a828adbc4555606900a1
treeda92181f60f67f1e82378e59edfd13def6a51fe7
parentd4def987a61c47edf05263ea867f3a6c84293804
crypto: talitos - fix bug in sg_copy_end_to_buffer

In function sg_copy_end_to_buffer, too much data
is copied when a segment in the scatterlist
has .length greater than the requested copy length.

This patch adds the limit checks to fix this bug of over copying,
which affected only the ahash algorithms.

Signed-off-by: Lee Nipper <lee.nipper@gmail.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c