aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLongfang Liu2021-03-13 15:28:23 +0800
committerHerbert Xu2021-03-19 21:59:46 +1100
commit4b7aef0230418345be1fb77abbb1592801869901 (patch)
tree8d0701d1596d6a37270591f9a3c2cdcc8bfa4722
parent682689a56e3b01c64ff6fab7884d94b02be2ab1c (diff)
crypto: hisilicon/sec - fixes a printing error
When the log is output here, the device has not been initialized yet. Signed-off-by: Longfang Liu <liulongfang@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/hisilicon/sec2/sec_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c
index f8355140cd46..2176e4da5b3a 100644
--- a/drivers/crypto/hisilicon/sec2/sec_crypto.c
+++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c
@@ -546,7 +546,7 @@ static int sec_skcipher_init(struct crypto_skcipher *tfm)
crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_req));
ctx->c_ctx.ivsize = crypto_skcipher_ivsize(tfm);
if (ctx->c_ctx.ivsize > SEC_IV_SIZE) {
- dev_err(SEC_CTX_DEV(ctx), "get error skcipher iv size!\n");
+ pr_err("get error skcipher iv size!\n");
return -EINVAL;
}