mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 08:30:52 +07:00
crypto: hisilicon/sec - fixes a printing error
[ Upstream commit 4b7aef0230418345be1fb77abbb1592801869901 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
6a6273a65f
commit
bde50f19ba
@ -544,7 +544,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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user