Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2472693pxj; Mon, 10 May 2021 03:57:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYTU7+WAHLm4NO5hg1K87Ks8Zba9r/+bPYdIqF3ymhZkmbaIDwp+fi0sGg/tnTTSI/FcVM X-Received: by 2002:aa7:cb43:: with SMTP id w3mr28598790edt.287.1620644270850; Mon, 10 May 2021 03:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644270; cv=none; d=google.com; s=arc-20160816; b=h1w+reDa/4s7MKrSAueBPqbnpE4hC8KdntK79dEsjK5XcoTpC+FEqrgcsu7KlnLYLa VEJdd2yOpdr83Q4PHUY4sgqqEKQ6ITlVdI1MQ87ZlyHpHIFf3KLQk4Kln5xu/yYORh5w BxBMe13wXGQW8HmlhrxaKzBBdsRHAzrQTQksyNqxP1mO3JB8NWdaoDHHq9ZF5WvcoF+h ZA6Rah7QVN8my7bd4Z/SRQWnvfda0wZIoyvpHdTp/Z5bGZNYHR5UMOBQYd/vtNTFWBZX CGx2PeFjFHdrgTWPstX4ED6oFPIy11B/5frdddvJzEYFYfo8UgsdeBLJBPJFLVlxZ5XM +XQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=smL7z7AoiVHveeYK671P40hX09c1tn3e+dg0e0OV7Pc=; b=jh5HIThpdV++ZXZPJPpOoQzq8z1FZ0ua5qBLhz7HcZi5FbUhsWysquvBtMa52Qkvp5 vZgWuu1SooW3fcw4ahlsvsc1tj2k2O6sFZtgjyf28N1u1Rd/NUW+5OEJZa7lJLkXzQl5 IIiR7n07ZWC0S8S7ivs7IwHI68k9W6SgWlUQBnsyDdEdVeyJa1SZOScOH5oZOqDe7H69 KevlAYnS2BS4/pclyPo8gcuh6uT8Dw/UoFBPgDrJiaJ6cFyGrK4n+DQT99G8dop1kTq/ 04hpzVGcNHvRTOeuszrpoi0pK5UkwW7xNUNv3ltJ+MbBowbS1owvW/NWRSUwpgzQQYl+ 2fYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o2T6hBVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si12946077ejf.662.2021.05.10.03.57.27; Mon, 10 May 2021 03:57:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o2T6hBVE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233613AbhEJKy7 (ORCPT + 99 others); Mon, 10 May 2021 06:54:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:59426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232542AbhEJKoZ (ORCPT ); Mon, 10 May 2021 06:44:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22478616EC; Mon, 10 May 2021 10:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642809; bh=qvepuzUd2M5/wOW1s57kH7TsdtEDE4yT+qZGWuCSelg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o2T6hBVEmylY9p0MbFIaeIQ+usKtSenjahthLplEqAlW2oxxs6xo1uKbQ/J/m7lD1 E5zPQiWlA2z49W2C7SQT/wIDZqUThuJY2VMGAWNm4Ewu1SIYDx08aX9IlDXoLpu9qW NR1gxt4FAr7gPnTX92U12tDZS7cD4EUwD22NVG5E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Longfang Liu , Herbert Xu , Sasha Levin Subject: [PATCH 5.10 061/299] crypto: hisilicon/sec - fixes a printing error Date: Mon, 10 May 2021 12:17:38 +0200 Message-Id: <20210510102006.906284385@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Longfang Liu [ Upstream commit 4b7aef0230418345be1fb77abbb1592801869901 ] When the log is output here, the device has not been initialized yet. Signed-off-by: Longfang Liu Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- 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