All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] net/iavf: fix memory leak on IPsec SP delete
@ 2026-09-14 10:49 Anatoly Burakov
  2026-09-14 16:13 ` Radu Nicolau
  0 siblings, 1 reply; 3+ messages in thread
From: Anatoly Burakov @ 2026-09-14 10:49 UTC (permalink / raw)
  To: dev, Vladimir Medvedkin, Radu Nicolau, Jingjing Wu,
	Declan Doherty, Abhijit Sinha

When deleting IPsec SP, we return status response without freeing the
request/response buffers. Do not return and proceed to freeing instead.

Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
Cc: radu.nicolau@intel.com
Cc: stable@dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
 drivers/net/intel/iavf/iavf_ipsec_crypto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/intel/iavf/iavf_ipsec_crypto.c b/drivers/net/intel/iavf/iavf_ipsec_crypto.c
index 9c8f694de52..06b51b5e622 100644
--- a/drivers/net/intel/iavf/iavf_ipsec_crypto.c
+++ b/drivers/net/intel/iavf/iavf_ipsec_crypto.c
@@ -941,7 +941,7 @@ iavf_ipsec_crypto_security_policy_delete(struct iavf_adapter *adapter,
 		response->req_id != request->req_id)
 		rc = -EFAULT;
 	else
-		return response->ipsec_data.ipsec_status->status;
+		rc = response->ipsec_data.ipsec_status->status;
 
 update_cleanup:
 	free(request);
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] net/iavf: fix memory leak on IPsec SP delete
  2026-09-14 10:49 [PATCH v1 1/1] net/iavf: fix memory leak on IPsec SP delete Anatoly Burakov
@ 2026-09-14 16:13 ` Radu Nicolau
  2026-09-15 14:04   ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Nicolau @ 2026-09-14 16:13 UTC (permalink / raw)
  To: Anatoly Burakov, dev, Vladimir Medvedkin, Jingjing Wu,
	Declan Doherty, Abhijit Sinha


On 14-Sep-26 11:49 AM, Anatoly Burakov wrote:
> When deleting IPsec SP, we return status response without freeing the
> request/response buffers. Do not return and proceed to freeing instead.
>
> Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
> Cc: radu.nicolau@intel.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
Acked-by: Radu Nicolau <radu.nicolau@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1 1/1] net/iavf: fix memory leak on IPsec SP delete
  2026-09-14 16:13 ` Radu Nicolau
@ 2026-09-15 14:04   ` Bruce Richardson
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2026-09-15 14:04 UTC (permalink / raw)
  To: Radu Nicolau
  Cc: Anatoly Burakov, dev, Vladimir Medvedkin, Jingjing Wu,
	Declan Doherty, Abhijit Sinha

On Mon, Sep 14, 2026 at 05:13:24PM +0100, Radu Nicolau wrote:
> 
> On 14-Sep-26 11:49 AM, Anatoly Burakov wrote:
> > When deleting IPsec SP, we return status response without freeing the
> > request/response buffers. Do not return and proceed to freeing instead.
> > 
> > Fixes: 6bc987ecb860 ("net/iavf: support IPsec inline crypto")
> > Cc: radu.nicolau@intel.com
> > Cc: stable@dpdk.org
> > 
> > Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> > ---
> Acked-by: Radu Nicolau <radu.nicolau@intel.com>

Applied to dpdk-next-net-intel.
Thanks,
/Bruce

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-15 14:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 10:49 [PATCH v1 1/1] net/iavf: fix memory leak on IPsec SP delete Anatoly Burakov
2026-09-14 16:13 ` Radu Nicolau
2026-09-15 14:04   ` Bruce Richardson

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.