]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
crypto: sun4i-ss - initialize need_fallback
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 14 Dec 2020 20:02:29 +0000 (20:02 +0000)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:38 +0000 (18:31 +0200)
commit7682a3f5cf7bddda983857ffeeb1d2a16e14fbd7
treeab84b3f323d04d4addf919b26fcc0310d184450d
parent3ded19b3fbb1d85b02758ad39347cba44f481c7d
crypto: sun4i-ss - initialize need_fallback

BugLink: https://bugs.launchpad.net/bugs/1918974
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/crypto/sunxi-ss/sun4i-ss-cipher.c