]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 22:21:56 +0000 (17:21 -0500)
commitb38ddf40f3189cacd3595218be9d0cfbc48dabeb
tree864b0b58dd1a3725353b195d4c0b94902848af3a
parentc2f65118eaa6e5918e6f50830aef1eaa82559a53
crypto: ux500 - memmove the right size

Orabug: 25308015

[ 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>
(cherry picked from commit 4a088cba60485acbdceee2c3f903e7b0c7846737)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/crypto/ux500/hash/hash_core.c