crypto: sun4i-ss - initialize need_fallback
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 14 Dec 2020 20:02:29 +0000 (20:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:32 +0000 (11:38 +0100)
commit70c4b76be44bd335d117bf0366a87f3e1da0558e
tree13be6f27844f24d2488ce1b4e7c6e59fe892df18
parent985b609668d8f4d53ce14e1df471e433b2095771
crypto: sun4i-ss - initialize need_fallback

commit 4ec8977b921fd9d512701e009ce8082cb94b5c1c upstream.

The need_fallback is never initialized and seem to be always true at runtime.
So all hardware operations are always bypassed.

Fixes: 0ae1f46c55f87 ("crypto: sun4i-ss - fallback when length is not multiple of blocksize")
Cc: <stable@vger.kernel.org>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c