Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp488175rdb; Fri, 26 Jan 2024 01:31:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8L0iMApWD3d/o2j32AnOhfs4GVyUdZHthGuy8T0JNQznwyMfCIaua3b31STaxiW3/jiIX X-Received: by 2002:a05:6a00:3d4f:b0:6db:ac9d:8705 with SMTP id lp15-20020a056a003d4f00b006dbac9d8705mr878425pfb.31.1706261500807; Fri, 26 Jan 2024 01:31:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706261500; cv=pass; d=google.com; s=arc-20160816; b=zM8ZdOU7u58CKhDbBb3H7GuKADK70WbtHLojNo3PRQfP6R1GKu6RlQBro13/JN4hZ9 xg9SFbLj76Uk5exeYRSUuewZ45XwlxBZqHIkmSNDwpyNFPjwvOSg22k8C/pRngIxXimc idNWs3gNT3Kta9tKNXXNA1ANAFGNXckJKiSGokpwOyYnlQacDUi2HUHqFwdFcKmWJlNy eXyWzIyeBj8v0nPs8lINEgufG5T23Mu1Stv6hIKwKvAVzmCf1Xa/QxpqqUGQSP3kIgBl cnaptn9A/LtjgYM618Mh5QzcoHF1UfTXJP50+KY8r6DvJCq9ZEPeREdKsH+pTc8kn12d 20EA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=XNVcuuHveczm4Jj42o0N9T8/cc5Q4+xgXfubaVkGdAE=; fh=7ZEo0tXxoiNgO9Ph6SvoAuGYQU631sM+Oc/1/EPLheg=; b=PJmn/caJwPci6C50I63dwC1a75UEQIfWGuJdmZNCL4N1b7VGdsSYGoigWKKt6lWbmo 5pvsung2RdtUDGQzH4l0l+00mBU4DC3RS77I5yulQ6iUjJyKH8CsrN9HWgDM/YwmmH2T f4hC9WuDD79qJ1qPg2TuTpOVC8WnIPNtphSIj7ZpRrWjTQEwJbuPhq6Qt38lZOmiPMRm dVkx3REsbe9ejOC0yb7j7MBcmF0Uzfc/mbi7kCjmwwk8nW+m8f8UbN0nmLvbFNuloc1P vpOqudqdLqXpFmZV0Na/DHq6Qcol7ZjY6ZuRGLiFqGWX5SCT2Bd3bsKZ9spvYFnqYf6W 0CAA== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-kernel+bounces-39808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39808-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b26-20020a63931a000000b005c2786b7e32si844824pge.812.2024.01.26.01.31.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 01:31:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gondor.apana.org.au); spf=pass (google.com: domain of linux-kernel+bounces-39808-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39808-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F1C15284D72 for ; Fri, 26 Jan 2024 09:29:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30A08241E5; Fri, 26 Jan 2024 08:55:42 +0000 (UTC) Received: from abb.hmeau.com (abb.hmeau.com [144.6.53.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 639592263C; Fri, 26 Jan 2024 08:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=144.6.53.87 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706259341; cv=none; b=HWYW6Z+5ozEzh2gOcXlDWjxjVjU7K93XCGfPylDsui5Pd9O6TYBbos8r1JAAwXQB9ptRC/oXM6IV5q0GGP1vWcQ6FVjpvRc+cHIXmV8y5R6p4UDX+3lhXO39DSxKdScbGnzGjfuxz8rsL9u2ZHgyCwx6J/0LGoYeRruMdR5UnZ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706259341; c=relaxed/simple; bh=YWuyFj1LWoUEo8gZuJhqmKZRCyglpZ4AVYuFv8OugUI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NTvnk74zF0yT3Q59xjW7DIv45RrDqFiJNLfuX1E7THS7JV8c/fa6eJNFIniGlEmBYfF0zlq0uva+uUbW1gQAE2vTvh1n14KdcmJRbN4mSGAvMc/eFWssyi2k6qPAFxJN61lDnIFeqrpyHNKK0EsrcQfc+9c5OYWMAdhXswwPc5k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au; spf=pass smtp.mailfrom=gondor.apana.org.au; arc=none smtp.client-ip=144.6.53.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gondor.apana.org.au Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1rTHzV-006ETz-47; Fri, 26 Jan 2024 16:55:14 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 26 Jan 2024 16:55:25 +0800 Date: Fri, 26 Jan 2024 16:55:25 +0800 From: Herbert Xu To: Markus Elfring Cc: kernel test robot , virtualization@lists.linux.dev, linux-crypto@vger.kernel.org, kernel-janitors@vger.kernel.org, "David S. Miller" , Gonglei , Jason Wang , "Michael S. Tsirkin" , Xuan Zhuo , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, LKML , cocci@inria.fr Subject: Re: [PATCH v2] crypto: virtio - Less function calls in __virtio_crypto_akcipher_do_req() after error detection Message-ID: References: <2413f22f-f0c3-45e0-9f6b-a551bdf0f54c@web.de> <202312260852.0ge5O8IL-lkp@intel.com> <7bf9a4fa-1675-45a6-88dd-82549ae2c6e0@web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7bf9a4fa-1675-45a6-88dd-82549ae2c6e0@web.de> On Tue, Dec 26, 2023 at 11:12:23AM +0100, Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 26 Dec 2023 11:00:20 +0100 > > The kfree() function was called in up to two cases by the > __virtio_crypto_akcipher_do_req() function during error handling > even if the passed variable contained a null pointer. > This issue was detected by using the Coccinelle software. > > * Adjust jump targets. > > * Delete two initialisations which became unnecessary > with this refactoring. > > Signed-off-by: Markus Elfring > --- > > v2: > A typo was fixed for the delimiter of a label. > > drivers/crypto/virtio/virtio_crypto_akcipher_algs.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 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