Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1229099pxf; Fri, 12 Mar 2021 05:15:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY5lMl7CD3XsPHJxqnbyacW3jEiaOy4jxycrPZl/3OZdVwAvP/j2ezsfs5G/K+aSXlMSNi X-Received: by 2002:a17:906:4e17:: with SMTP id z23mr8571297eju.439.1615554902350; Fri, 12 Mar 2021 05:15:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615554902; cv=none; d=google.com; s=arc-20160816; b=hPak1tsbP2oioIh5GcyC7qKPniZ7AdEa/f6l0y0L65ozDxl1Tk0quQhkoznWB7alrB I47Wz8wgumGvllsROBT52gkykQMLiW7LTqXRov2P2y6jjb3nKjTyDgi0way+pI5NayGe DcLon5FaCvwZM0hKyTz8QS+WW2TkBWYoApeHpcIhyiLl5vez8fM/FuRlr50jTFI6rkTD kyomls4Ctqb6kdrn6S8LondsIbo9Q8Uu+2oIUUkNrSunxKR0igs6qLOzURwKlPoXd4i5 4ni+Yy3CQ2vHKbCYzrKFeoAmhinG+Rd6hHzfOSPmtXV5bXdEaPsSBlkyHgqEaBnE8rlS +CeA== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=t8JLoL+g+JCu92cqWApJRlYMOxQ2EushcTECutotNrc=; b=rdVB5TlJR1jvJC6mseYGSMbJCNPBsvWTesuSW3KHpbqDem3sQyASxrjA3TTCIs8oCL vMRNT86XyzfIm3tKi26o6N3MlYzkY15Wcv+kbLFCMVfxJ0IIqYT5MSmwqisNazPjCrHA PMA+8Ua4jJXqz8ZAuRIozBcU6vsWwX5qyfbIyu0xzagANB8GEvnaC53QaIzeyHRuWsFb 3QxRzKbFeMeV66Ud7kar+LI+kfjgXGZFMPcLEWigA/ztjSNhrQpy2ZScEefvo1qFiY4S BYg36unjGcvY47lEd8qyiRfFsoiUo4HlGb46I0yZ2GgekLTeJtFe/GS7NzbLQ0Z+vNaB iL8g== 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 m9si4082146ejj.339.2021.03.12.05.14.38; Fri, 12 Mar 2021 05:15:02 -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 S230171AbhCLNNs (ORCPT + 99 others); Fri, 12 Mar 2021 08:13:48 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:54538 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231835AbhCLNNn (ORCPT ); Fri, 12 Mar 2021 08:13:43 -0500 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.103.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1lKhbg-0006IM-NK; Sat, 13 Mar 2021 00:13:33 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 13 Mar 2021 00:13:32 +1100 Date: Sat, 13 Mar 2021 00:13:32 +1100 From: Herbert Xu To: Jia-Ju Bai Cc: clabbe.montjoie@gmail.com, davem@davemloft.net, mripard@kernel.org, wens@csie.org, jernej.skrabec@siol.net, mchehab+huawei@kernel.org, corbet@lwn.net, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: allwinner: sun8i-ce: fix error return code in sun8i_ce_prng_generate() Message-ID: <20210312131332.GI31502@gondor.apana.org.au> References: <20210305015717.2908-1-baijiaju1990@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210305015717.2908-1-baijiaju1990@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Mar 04, 2021 at 05:57:17PM -0800, Jia-Ju Bai wrote: > When dma_mapping_error() returns an error, no error return code of > sun8i_ce_prng_generate() is assigned. > To fix this bug, err is assigned with -EFAULT as error return code. > > Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai > --- > drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c | 1 + > 1 file changed, 1 insertion(+) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt