mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org
Cc: Longfang Liu <liulongfang@huawei.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Sasha Levin <sashal@kernel.org>,
	linux-crypto@vger.kernel.org
Subject: [PATCH AUTOSEL 5.10 12/66] crypto: hisilicon/sec - fixes a printing error
Date: Sun,  2 May 2021 10:03:17 -0400	[thread overview]
Message-ID: <20210502140411.2719301-12-sashal@kernel.org> (raw)
In-Reply-To: <20210502140411.2719301-1-sashal@kernel.org>

From: Longfang Liu <liulongfang@huawei.com>

[ 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>
---
 drivers/crypto/hisilicon/sec2/sec_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c
index bb493423668c..41f1fcacb280 100644
--- a/drivers/crypto/hisilicon/sec2/sec_crypto.c
+++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c
@@ -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;
 	}
 
-- 
2.30.2


  parent reply	other threads:[~2021-05-02 14:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-02 14:03 [PATCH AUTOSEL 5.10 01/66] bus: ti-sysc: Probe for l4_wkup and l4_cfg interconnect devices first Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 02/66] staging: wimax/i2400m: fix byte-order issue Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 03/66] spi: ath79: always call chipselect function Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 04/66] spi: ath79: remove spi-master setup and cleanup assignment Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 05/66] bus: mhi: core: Destroy SBL devices when moving to mission mode Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 06/66] crypto: api - check for ERR pointers in crypto_destroy_tfm() Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 07/66] crypto: qat - fix unmap invalid dma address Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 08/66] usb: gadget: uvc: add bInterval checking for HS mode Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 09/66] usb: webcam: Invalid size of Processing Unit Descriptor Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 10/66] x86/sev: Do not require Hypervisor CPUID bit for SEV guests Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 11/66] x86/boot/compressed/64: Check SEV encryption in the 32-bit boot-path Sasha Levin
2021-05-02 14:03 ` Sasha Levin [this message]
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 13/66] genirq/matrix: Prevent allocation counter corruption Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 14/66] usb: gadget: f_uac2: validate input parameters Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 15/66] usb: gadget: f_uac1: " Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 16/66] usb: dwc3: gadget: Ignore EP queue requests during bus reset Sasha Levin
2021-05-02 14:03 ` [PATCH AUTOSEL 5.10 17/66] usb: xhci: Fix port minor revision Sasha Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210502140411.2719301-12-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liulongfang@huawei.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®