]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9991ba6b953ac8091a9683851948bc0ae47e0258
treee21bb594a9351e308144b475afa4d079ba338e27
parent19c60f5f8ffbfff047f705d8225ba7ec197761c6
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