crypto: ux500 - memmove the right size
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Jun 2016 12:56:39 +0000 (14:56 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 13 Jun 2016 09:43:05 +0000 (17:43 +0800)
commit19ced623db2fe91604d69f7d86b03144c5107739
treee21bb594a9351e308144b475afa4d079ba338e27
parent12d3f49e1ffbbf8cbbb60acae5a21103c5c841ac
crypto: ux500 - memmove the right size

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>
drivers/crypto/ux500/hash/hash_core.c