[PATCH v2 4/8] net/ice: fix DCF QoS buffer leak on commit
Anurag Mandal
anurag.mandal at intel.com
Sun Nov 8 00:52:14 CET 2026
ice_dcf_hierarchy_commit() frees its temporary VF
and TC bandwidth buffers only on the error path,
so every successful commit still leaks them.
Free them on success as well.
Fixes: efd5d15a886b ("net/ice: fix memory leak in DCF QoS bandwidth config")
Cc: stable at dpdk.org
Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/intel/ice/ice_dcf_sched.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/intel/ice/ice_dcf_sched.c b/drivers/net/intel/ice/ice_dcf_sched.c
index 84342241aa..de28019c5b 100644
--- a/drivers/net/intel/ice/ice_dcf_sched.c
+++ b/drivers/net/intel/ice/ice_dcf_sched.c
@@ -849,6 +849,8 @@ static int ice_dcf_hierarchy_commit(struct rte_eth_dev *dev,
ICE_NONDMA_TO_NONDMA);
hw->tm_conf.committed = true;
+ free(vf_bw);
+ free(tc_bw);
return ret_val;
fail_clear:
--
2.25.1
More information about the stable
mailing list