[PATCH v1 1/1] net/iavf: fix memory leak on IPsec SP delete

Anatoly Burakov anatoly.burakov at intel.com
Mon Sep 14 12:49:01 CEST 2026


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 at intel.com
Cc: stable at dpdk.org

Signed-off-by: Anatoly Burakov <anatoly.burakov at 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



More information about the dev mailing list