crypto: ux500 - memmove the right size
commit4a088cba60485acbdceee2c3f903e7b0c7846737
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Jun 2016 12:56:39 +0000 (8 14:56 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 00:19:55 +0000 (10 20:19 -0400)
tree88e94c92fa84857ac8d337c8af376a37b3289598
parent9341331d504d3acd5b3ad0763bb9d23cd3b28944
crypto: ux500 - memmove the right size

[ Upstream commit 19ced623db2fe91604d69f7d86b03144c5107739 ]

The hash buffer is really HASH_BLOCK_SIZE bytes, someone
must have thought that memmove takes n*u32 words by mistake.
Tests work as good/bad as before after this patch.

Cc: Joakim Bech <joakim.bech@linaro.org>
Cc: stable@vger.kernel.org
Reported-by: David Binderman <linuxdev.baldrick@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/crypto/ux500/hash/hash_core.c