Skip to content

Commit 70c4b76

Browse files
montjoiegregkh
authored andcommitted
crypto: sun4i-ss - initialize need_fallback
commit 4ec8977 upstream. The need_fallback is never initialized and seem to be always true at runtime. So all hardware operations are always bypassed. Fixes: 0ae1f46 ("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>
1 parent 985b609 commit 70c4b76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq)
194194
unsigned int obo = 0; /* offset in bufo*/
195195
unsigned int obl = 0; /* length of data in bufo */
196196
unsigned long flags;
197-
bool need_fallback;
197+
bool need_fallback = false;
198198

199199
if (!areq->cryptlen)
200200
return 0;

0 commit comments

Comments
 (0)