提交 2d6969f6 编写于 作者: L Longfang Liu 提交者: Zheng Zengkai

crypto: hisilicon/sec - fixes a printing error

stable inclusion
from stable-5.10.36
commit bde50f19ba241a06e6a37f8bf9db77e9ea1ef093
bugzilla: 51867
CVE: NA

--------------------------------

[ Upstream commit 4b7aef02 ]

When the log is output here, the device has not
been initialized yet.
Signed-off-by: NLongfang Liu <liulongfang@huawei.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 c234c9bd
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册