RE: [PATCH v2] crypto: virtio - Less function calls in __virtio_crypto_akcipher_do_req() after error detection

2023-12-26 Thread Gonglei (Arei)
> -Original Message- > From: Markus Elfring [mailto:markus.elfr...@web.de] > Sent: Tuesday, December 26, 2023 6:12 PM > To: kernel test robot ; virtualizat...@lists.linux.dev; > linux-crypto@vger.kernel.org; kernel-janit...@vger.kernel.org; David S. Miller > ; Gonglei (Arei) ; Herbert > X

[PATCH v2] crypto: virtio - Less function calls in __virtio_crypto_akcipher_do_req() after error detection

2023-12-26 Thread Markus Elfring
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. *