Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp962202pxu; Wed, 7 Oct 2020 22:44:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy55zMtFIxzALV2UCtWguvfc7GYSr+CqX6lM71LIV5sDsdN8btcXS4ZIOrMoz/s7vSyJLHF X-Received: by 2002:aa7:cc18:: with SMTP id q24mr860068edt.108.1602135882031; Wed, 07 Oct 2020 22:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602135882; cv=none; d=google.com; s=arc-20160816; b=Og+rPtYIfjYejnCeX0m+orfVwImjEVi0RnGudxphTjK2dbfPJAvAZASb9u32ZzE3Ht CvEvUxFfY4eXFLy/u4+LtQHmcPUx0kto54cojNvprZLBV7Zk2paWWx+fbhHdFvc112fc Pth55TqR7LQIUlTDrRM7yazEf+dEjw7tv0Ep4AGdKxxCt6kt/Due0KxyA4aJZ4RW72FW NlaxSRpZdSonwB74K46ZKN7pdcGbmnNEXUXC0psjAVF79ihswLDHTDR1wDHyveSTyYti wCnA1rfilkb69dZCeP9U8Uy+y5DJxM69llfQLOQCssG3kbx0ygNIqMKUIE+g0kj/L4Jo vBZA== 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=+wJ7DaqALYyCRxQNuIvGk9SAS4mQLHqi3SxmHQRB+aM=; b=ozUS4NiXRsWjq9BQ6FhB1nKB9CX/E3Z7jxN19SnxSV9IExvqC0UQeHS4cT1oU7flKG ALwmpKDg7Yc5rpEOMG0/6YEyPwCBM6uW+lG9q4Yntq/+sauUdd8nJsFntmXNaCmSCXqq TnIuX9AgCvsFBDfkenxJIPW/52DVztg49c3Bg7ArbXfWW23xlUcYpuK8s6HZ+azznACg Xlg0JVk58GYg9jFzmMbtqz4R7kQNuNJSZKKrY5hfx3lGRMXatOGBCDE8TpOSmjvBM5P8 8V7cuBu8J/uwYKfa2BvnWrxD6c5BfzS1hS/tGpOdMap7vGMSndWeGaP411ODGaG4lSkK 4bXw== 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 o1si2891461edv.320.2020.10.07.22.44.18; Wed, 07 Oct 2020 22:44:42 -0700 (PDT) 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 S1728271AbgJHFoI (ORCPT + 99 others); Thu, 8 Oct 2020 01:44:08 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:41220 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbgJHFoI (ORCPT ); Thu, 8 Oct 2020 01:44:08 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kQOib-0006T4-2l; Thu, 08 Oct 2020 16:43:58 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 08 Oct 2020 16:43:57 +1100 Date: Thu, 8 Oct 2020 16:43:57 +1100 From: Herbert Xu To: Tianjia Zhang Cc: David Howells , "David S. Miller" , Gilad Ben-Yossef , linux-crypto@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] X.509: fix error return value on the failed path Message-ID: <20201008054357.GC9733@gondor.apana.org.au> References: <20201005144628.83875-1-tianjia.zhang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201005144628.83875-1-tianjia.zhang@linux.alibaba.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Oct 05, 2020 at 10:46:28PM +0800, Tianjia Zhang wrote: > When memory allocation fails, an appropriate return value > should be set. > > Fixes: 215525639631 ("X.509: support OSCCA SM2-with-SM3 certificate verification") > Signed-off-by: Tianjia Zhang > --- > crypto/asymmetric_keys/public_key_sm2.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt