crypto: sun4i-ss - initialize need_fallback
The need_fallback is never initialized and seem to be always true at runtime.
So all hardware operations are always bypassed.
Fixes: 0ae1f46c55
("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>
This commit is contained in:
parent
5ab6177fa0
commit
4ec8977b92
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq)
|
||||||
unsigned int obo = 0; /* offset in bufo*/
|
unsigned int obo = 0; /* offset in bufo*/
|
||||||
unsigned int obl = 0; /* length of data in bufo */
|
unsigned int obl = 0; /* length of data in bufo */
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
bool need_fallback;
|
bool need_fallback = false;
|
||||||
|
|
||||||
if (!areq->cryptlen)
|
if (!areq->cryptlen)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue