Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1061574pxb; Thu, 5 Nov 2020 23:05:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHFgiYUA/xmgjspBkSKdaAONEvrQAgWKRUbL8TsAv75ZKVlibgSQrAAIMMCkmkiTgL2UCf X-Received: by 2002:a17:906:4698:: with SMTP id a24mr749466ejr.90.1604646303095; Thu, 05 Nov 2020 23:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604646303; cv=none; d=google.com; s=arc-20160816; b=ScB9XWs8gFWPBEaUQy5IvqNbFSMu+wPMv86pjAKJ68dWHW8aByzCDpCpg2HG6HUy2r 3EBBDVk850/CfTl4rTTxppcNm6RQ7CWRkcmExRVwNMoc81HSZSVD+sJ+PvyxpD+yyr0h PmM0dQdJfMptttGaj79lfuj4gCKFAoA1htZmGnGb8RQCPEZiT8VIXws8TIVXbmmK1ECQ VByjsJB78UGnbJU/IPaBxvQfMO0c/6ZGwvaCetgQSG7dRqenpOG6PEGXJdmkZlbscHyj 1Wr99JUFum3baNoiysiYxZwq6JmY6LQX1q6mKSZEltYM0ERacwrwBSeb8/0kZNig3vIA uQYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dvEMdzMnQzMBgsI5zFdZD1UEPFB4Y/KaBZ/XViuVumY=; b=dFyGvUatpPrE+SztwdGQhVtz6H1nFNzXFV1ijxWBdiZKbIP7e2T6TWiiE8k0AJJWeL ug9HwpdoiwnqrKe+RSrEjXr7A9jfZiMA7isTeIra3N5UN2bAKfbIff3oKITGmtCutk9T NpH6tvFz/z9cJ4EiYLiIHJR7Cb0+1FGes5McXYy2iHg9YJXJcVQBvaA8086ZDOfVgLWU qSHJzvWaTrX44at84lyZ+dNSfgxoLMrD1kA3GfIOLrgK95uiWGnR13YsiJT5+yfq0x58 Zyp75JC9o+mqvKhH1xE0vd+l1+bzxg0OcFh64dAca9ovqrzoYC6SBRGnwPkiaRNUDY4S MdhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si368422edj.303.2020.11.05.23.04.40; Thu, 05 Nov 2020 23:05:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725837AbgKFHDj (ORCPT + 99 others); Fri, 6 Nov 2020 02:03:39 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:35104 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbgKFHDj (ORCPT ); Fri, 6 Nov 2020 02:03:39 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kavmY-00088a-8Q; Fri, 06 Nov 2020 18:03:35 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 06 Nov 2020 18:03:34 +1100 Date: Fri, 6 Nov 2020 18:03:34 +1100 From: Herbert Xu To: Horia =?utf-8?Q?Geant=C4=83?= Cc: "David S. Miller" , Aymen Sghaier , Andrei Botila , linux-crypto@vger.kernel.org, NXP Linux Team , linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: caam - fix printing on xts fallback allocation error path Message-ID: <20201106070334.GJ11620@gondor.apana.org.au> References: <20201101200553.25248-1-horia.geanta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201101200553.25248-1-horia.geanta@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Sun, Nov 01, 2020 at 10:05:53PM +0200, Horia Geantă wrote: > At the time xts fallback tfm allocation fails the device struct > hasn't been enabled yet in the caam xts tfm's private context. > > Fix this by using the device struct from xts algorithm's private context > or, when not available, by replacing dev_err with pr_err. > > Fixes: 9d9b14dbe077 ("crypto: caam/jr - add fallback for XTS with more than 8B IV") > Fixes: 83e8aa912138 ("crypto: caam/qi - add fallback for XTS with more than 8B IV") > Fixes: 36e2d7cfdcf1 ("crypto: caam/qi2 - add fallback for XTS with more than 8B IV") > Signed-off-by: Horia Geantă > --- > drivers/crypto/caam/caamalg.c | 4 ++-- > drivers/crypto/caam/caamalg_qi.c | 4 ++-- > drivers/crypto/caam/caamalg_qi2.c | 3 ++- > 3 files changed, 6 insertions(+), 5 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt