]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sun4i-ss - do not dynamically set parts of the last buffer to 0
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Thu, 1 Jun 2017 19:38:57 +0000 (21:38 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 19 Jun 2017 06:19:50 +0000 (14:19 +0800)
commit66f1f8585ceb186727710e86c1d4bd3182c64576
tree8fa9e18d5968c6b66fb8b03ebc931043a875bd8b
parent7609526a7361bf0c0b6b50ca0364f8dd61bcb99a
crypto: sun4i-ss - do not dynamically set parts of the last buffer to 0

Parts of the bf buffer were dynamically set to 0. Change this to set the
whole buffer to 0 by default to avoid any mistake.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sunxi-ss/sun4i-ss-hash.c