crypto: hisilicon/sec - fixes a printing error
authorLongfang Liu <liulongfang@huawei.com>
Sat, 13 Mar 2021 07:28:23 +0000 (15:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Mar 2021 10:59:46 +0000 (21:59 +1100)
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>
drivers/crypto/hisilicon/sec2/sec_crypto.c

index f8355140cd463211c4762797073b8b2eca4f58b0..2176e4da5b3a6da1f5065cfad88bb887801341bb 100644 (file)
@@ -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;
        }