Skip to content

Commit

Permalink
crypto: sun4i-ss - initialize need_fallback
Browse files Browse the repository at this point in the history
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: <[email protected]>
Signed-off-by: Corentin Labbe <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
montjoie authored and herbertx committed Jan 2, 2021
1 parent 5ab6177 commit 4ec8977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static int sun4i_ss_cipher_poll(struct skcipher_request *areq)
unsigned int obo = 0; /* offset in bufo*/
unsigned int obl = 0; /* length of data in bufo */
unsigned long flags;
bool need_fallback;
bool need_fallback = false;

if (!areq->cryptlen)
return 0;
Expand Down

0 comments on commit 4ec8977

Please sign in to comment.