diff options
-rw-r--r-- | drivers/crypto/ccp/ccp-crypto-aes-xts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/ccp/ccp-crypto-aes-xts.c b/drivers/crypto/ccp/ccp-crypto-aes-xts.c index 0237ab58f242..0cc5594b7de3 100644 --- a/drivers/crypto/ccp/ccp-crypto-aes-xts.c +++ b/drivers/crypto/ccp/ccp-crypto-aes-xts.c | |||
@@ -191,12 +191,12 @@ static int ccp_aes_xts_cra_init(struct crypto_tfm *tfm) | |||
191 | ctx->complete = ccp_aes_xts_complete; | 191 | ctx->complete = ccp_aes_xts_complete; |
192 | ctx->u.aes.key_len = 0; | 192 | ctx->u.aes.key_len = 0; |
193 | 193 | ||
194 | fallback_tfm = crypto_alloc_ablkcipher(tfm->__crt_alg->cra_name, 0, | 194 | fallback_tfm = crypto_alloc_ablkcipher(crypto_tfm_alg_name(tfm), 0, |
195 | CRYPTO_ALG_ASYNC | | 195 | CRYPTO_ALG_ASYNC | |
196 | CRYPTO_ALG_NEED_FALLBACK); | 196 | CRYPTO_ALG_NEED_FALLBACK); |
197 | if (IS_ERR(fallback_tfm)) { | 197 | if (IS_ERR(fallback_tfm)) { |
198 | pr_warn("could not load fallback driver %s\n", | 198 | pr_warn("could not load fallback driver %s\n", |
199 | tfm->__crt_alg->cra_name); | 199 | crypto_tfm_alg_name(tfm)); |
200 | return PTR_ERR(fallback_tfm); | 200 | return PTR_ERR(fallback_tfm); |
201 | } | 201 | } |
202 | ctx->u.aes.tfm_ablkcipher = fallback_tfm; | 202 | ctx->u.aes.tfm_ablkcipher = fallback_tfm; |