]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
crypto: ccree - update a stale reference to ablkcipher
authorArd Biesheuvel <ardb@kernel.org>
Sat, 9 Nov 2019 17:09:54 +0000 (18:09 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:50 +0000 (09:02 +0800)
The ccree driver does not use the ablkcipher interface but contains
a rudimentary reference to it in the naming of an unrelated macro.
Let's rename it to avoid confusion.

Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_cipher.c

index 254b48797799408b668832d4d8988d066fc42444..3112b58d0bb168b6f2ed86ca2d38c2702fd86f0e 100644 (file)
@@ -16,7 +16,7 @@
 #include "cc_cipher.h"
 #include "cc_request_mgr.h"
 
-#define MAX_ABLKCIPHER_SEQ_LEN 6
+#define MAX_SKCIPHER_SEQ_LEN 6
 
 #define template_skcipher      template_u.skcipher
 
@@ -822,7 +822,7 @@ static int cc_cipher_process(struct skcipher_request *req,
        void *iv = req->iv;
        struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
        struct device *dev = drvdata_to_dev(ctx_p->drvdata);
-       struct cc_hw_desc desc[MAX_ABLKCIPHER_SEQ_LEN];
+       struct cc_hw_desc desc[MAX_SKCIPHER_SEQ_LEN];
        struct cc_crypto_req cc_req = {};
        int rc;
        unsigned int seq_len = 0;