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
Hi:
I used your patch and test it on MPC8548 board. Today, I found a
problem when doing raid5 recovering.
talitos e003.crypto: master data transfer error
talitos e003.crypto: xor operation: talitos error -22
[ cut here ]
Kernel BUG at c02dcb6c [verbose debug info