All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gonglei (Arei)" <arei.gonglei@huawei.com>
To: Markus Elfring <Markus.Elfring@web.de>,
	kernel test robot <lkp@intel.com>,
	"virtualization@lists.linux.dev" <virtualization@lists.linux.dev>,
	"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
	"kernel-janitors@vger.kernel.org"
	<kernel-janitors@vger.kernel.org>,
	"David S. Miller" <davem@davemloft.net>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Jason Wang <jasowang@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>
Cc: "llvm@lists.linux.dev" <llvm@lists.linux.dev>,
	"oe-kbuild-all@lists.linux.dev" <oe-kbuild-all@lists.linux.dev>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"cocci@inria.fr" <cocci@inria.fr>
Subject: RE: [PATCH v2] crypto: virtio - Less function calls in __virtio_crypto_akcipher_do_req() after error detection
Date: Tue, 26 Dec 2023 12:22:11 +0000	[thread overview]
Message-ID: <deb25ea00a57448d94496db1c46af693@huawei.com> (raw)
In-Reply-To: <7bf9a4fa-1675-45a6-88dd-82549ae2c6e0@web.de>



> -----Original Message-----
> From: Markus Elfring [mailto:Markus.Elfring@web.de]
> Sent: Tuesday, December 26, 2023 6:12 PM
> To: kernel test robot <lkp@intel.com>; virtualization@lists.linux.dev;
> linux-crypto@vger.kernel.org; kernel-janitors@vger.kernel.org; David S. Miller
> <davem@davemloft.net>; Gonglei (Arei) <arei.gonglei@huawei.com>; Herbert
> Xu <herbert@gondor.apana.org.au>; Jason Wang <jasowang@redhat.com>;
> Michael S. Tsirkin <mst@redhat.com>; Xuan Zhuo
> <xuanzhuo@linux.alibaba.com>
> Cc: llvm@lists.linux.dev; oe-kbuild-all@lists.linux.dev; netdev@vger.kernel.org;
> LKML <linux-kernel@vger.kernel.org>; cocci@inria.fr
> Subject: [PATCH v2] crypto: virtio - Less function calls in
> __virtio_crypto_akcipher_do_req() after error detection
> 
> From: Markus Elfring <elfring@users.sourceforge.net>
> 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 <elfring@users.sourceforge.net>
> ---
> 
> 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(-)
> 

Reviewed-by: Gonglei <arei.gonglei@huawei.com>


Regards,
-Gonglei

  reply	other threads:[~2023-12-26 12:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-24 19:55 [cocci] [PATCH] crypto: virtio - Less function calls in __virtio_crypto_akcipher_do_req() after error detection Markus Elfring
2023-12-24 19:55 ` Markus Elfring
2023-12-26  0:54 ` kernel test robot
2023-12-26 10:12   ` [cocci] [PATCH v2] " Markus Elfring
2023-12-26 10:12     ` Markus Elfring
2023-12-26 12:22     ` Gonglei (Arei) [this message]
2024-01-09 23:42     ` Justin Stitt
2024-01-10  7:46       ` [cocci] " Markus Elfring
2024-01-10  7:46         ` Markus Elfring
2024-01-26  8:55     ` [PATCH v2] " Herbert Xu
2023-12-26  2:57 ` [PATCH] " kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=deb25ea00a57448d94496db1c46af693@huawei.com \
    --to=arei.gonglei@huawei.com \
    --cc=Markus.Elfring@web.de \
    --cc=cocci@inria.fr \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=jasowang@redhat.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.